From 451b5fc969100e9866f74dac71e9b6bda5af5324 Mon Sep 17 00:00:00 2001 From: David Dykstra Date: Sat, 11 Jan 2003 14:39:41 +0000 Subject: [PATCH] Cast the return of alloca to remove a fatal error on Cray UNICOS. --- popt/popt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.34.1