]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - include/libiberty.h
libiberty.h (ACONCAT): Properly cast value of alloca().
[thirdparty/gcc.git] / include / libiberty.h
index ae0ab2bde08ac45fd98d46425e29742d98741a62..9af981cd74ea95e73f11d28322d348aca2ef5bc1 100644 (file)
@@ -156,7 +156,7 @@ extern char *libiberty_concat_ptr;
    strings.  Allocates memory using alloca.  The arguments are
    evaluated twice!  */
 #define ACONCAT(ACONCAT_PARAMS) \
-  (libiberty_concat_ptr = alloca (concat_length ACONCAT_PARAMS + 1), \
+  (libiberty_concat_ptr = (char *) alloca (concat_length ACONCAT_PARAMS + 1), \
    concat_copy2 ACONCAT_PARAMS)
 
 /* Check whether two file descriptors refer to the same file.  */