(error_init, pedwarn_init): Cast alloca result to char *.

From-SVN: r4133
This commit is contained in:
Richard Kenner 1993-04-13 16:58:17 -04:00
parent 6b2a374b2c
commit 73a424d3a2
1 changed files with 2 additions and 2 deletions

View File

@ -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)