Cast the return of alloca to remove a fatal error on Cray UNICOS.
authorDavid Dykstra <dwd@samba.org>
Sat, 11 Jan 2003 14:39:41 +0000 (14:39 +0000)
committerDavid Dykstra <dwd@samba.org>
Sat, 11 Jan 2003 14:39:41 +0000 (14:39 +0000)
popt/popt.c

index 962f973..c6672b7 100644 (file)
@@ -1054,7 +1054,7 @@ poptContext poptFreeContext(poptContext con)
 int poptAddAlias(poptContext con, struct poptAlias alias,
                /*@unused@*/ int flags)
 {
-    poptItem item = alloca(sizeof(*item));
+    poptItem item = (poptItem) alloca(sizeof(*item));
     memset(item, 0, sizeof(*item));
     item->option.longName = alias.longName;
     item->option.shortName = alias.shortName;