From: Stu Grossman Date: Wed, 30 Sep 1992 20:00:22 +0000 (+0000) Subject: * readline.c (rl_complete_internal): Cast alloca to (char *) to X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5a41df75f64e258f9cd635cccf07e98b0a92bee9;p=binutils-gdb.git * readline.c (rl_complete_internal): Cast alloca to (char *) to avoid warning. --- diff --git a/readline/ChangeLog b/readline/ChangeLog index e7664451ce1..5eada8008e2 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 35bae45c16b..b888f30a085 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]);