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/readline.c | |
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/readline.c')
-rw-r--r-- | readline/readline.c | 2 |
1 files changed, 1 insertions, 1 deletions
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]); |