From 73a424d3a21a3ce668844d1d2ce04a190e4986a6 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Tue, 13 Apr 1993 16:58:17 -0400 Subject: [PATCH] (error_init, pedwarn_init): Cast alloca result to char *. From-SVN: r4133 --- gcc/c-typeck.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)