From: Richard Kenner Date: Tue, 13 Apr 1993 20:58:17 +0000 (-0400) Subject: (error_init, pedwarn_init): Cast alloca result to char *. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=73a424d3a21a3ce668844d1d2ce04a190e4986a6;p=gcc.git (error_init, pedwarn_init): Cast alloca result to char *. From-SVN: r4133 --- diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index f809b358ae9..081a237b986 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -4679,7 +4679,7 @@ error_init (format, local, ofwhat) char *buffer; if (ofwhat == 0) - ofwhat = print_spelling (alloca (spelling_length () + 1)); + ofwhat = print_spelling ((char *) alloca (spelling_length () + 1)); buffer = (char *) alloca (strlen (local) + strlen (ofwhat) + 2); if (*ofwhat) @@ -4705,7 +4705,7 @@ pedwarn_init (format, local, ofwhat) char *buffer; if (ofwhat == 0) - ofwhat = print_spelling (alloca (spelling_length () + 1)); + ofwhat = print_spelling ((char *) alloca (spelling_length () + 1)); buffer = (char *) alloca (strlen (local) + strlen (ofwhat) + 2); if (*ofwhat)