diff options
author | Stu Grossman <grossman@cygnus> | 1992-09-30 20:00:22 +0000 |
---|---|---|
committer | Stu Grossman <grossman@cygnus> | 1992-09-30 20:00:22 +0000 |
commit | 5a41df75f64e258f9cd635cccf07e98b0a92bee9 (patch) | |
tree | b14b4e13773146517eaeda8a1b0a296cc94e2427 /readline | |
parent | 772f0867c388015fbe2a49af59422a131708470b (diff) | |
download | gdb-5a41df75f64e258f9cd635cccf07e98b0a92bee9.zip gdb-5a41df75f64e258f9cd635cccf07e98b0a92bee9.tar.gz gdb-5a41df75f64e258f9cd635cccf07e98b0a92bee9.tar.bz2 |
* readline.c (rl_complete_internal): Cast alloca to (char *) to
avoid warning.
Diffstat (limited to 'readline')
-rw-r--r-- | readline/ChangeLog | 5 | ||||
-rw-r--r-- | readline/readline.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/readline/ChangeLog b/readline/ChangeLog index e766445..5eada80 100644 --- a/readline/ChangeLog +++ b/readline/ChangeLog @@ -1,3 +1,8 @@ +Wed Sep 30 12:58:57 1992 Stu Grossman (grossman at cygnus.com) + + * readline.c (rl_complete_internal): Cast alloca to (char *) to + avoid warning. + Fri Sep 25 12:45:05 1992 Stu Grossman (grossman at cygnus.com) * readline.c (clear_to_eol, rl_generic_bind): Make static. diff --git a/readline/readline.c b/readline/readline.c index 35bae45..b888f30 100644 --- a/readline/readline.c +++ b/readline/readline.c @@ -3884,7 +3884,7 @@ rl_complete_internal (what_to_do) /* Found an embedded word break character in a potential match, so need to prepend a quote character if we are replacing the completion string. */ - replacement = alloca (strlen (matches[0]) + 2); + replacement = (char *)alloca (strlen (matches[0]) + 2); quote_char = *rl_completer_quote_characters; *replacement = quote_char; strcpy (replacement + 1, matches[0]); |