From: David Dykstra Date: Sat, 11 Jan 2003 14:39:41 +0000 (+0000) Subject: Cast the return of alloca to remove a fatal error on Cray UNICOS. X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/451b5fc969100e9866f74dac71e9b6bda5af5324 Cast the return of alloca to remove a fatal error on Cray UNICOS. --- diff --git a/popt/popt.c b/popt/popt.c index 962f9732..c6672b7a 100644 --- a/popt/popt.c +++ b/popt/popt.c @@ -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;