(main): Cast alloca result to char * to avoid warning.
authorJim Wilson <wilson@gcc.gnu.org>
Wed, 22 Dec 1993 19:25:04 +0000 (11:25 -0800)
committerJim Wilson <wilson@gcc.gnu.org>
Wed, 22 Dec 1993 19:25:04 +0000 (11:25 -0800)
From-SVN: r6268

gcc/cccp.c

index c2c9f9ec54a6cdad54fcd5e4238856809255c364..ba1c1293a40bb77ef8fdf9b9648b99e976b606b8 100644 (file)
@@ -1879,7 +1879,7 @@ main (argc, argv)
        q = in_fname;
 
       /* Copy remainder to mungable area.  */
-      p = alloca (strlen(q) + 8);
+      p = (char *) alloca (strlen(q) + 8);
       strcpy (p, q);
 
       /* Output P, but remove known suffixes.  */