From: johanknol Date: Tue, 30 Oct 2001 11:26:51 +0000 (+0000) Subject: fixed bug #476281 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=363e76eba5dcf06d97647df94f0518b314dd29c6;p=fw%2Fsdcc fixed bug #476281 git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1465 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/SDCCast.c b/src/SDCCast.c index 99e4bef7..9dfec48e 100644 --- a/src/SDCCast.c +++ b/src/SDCCast.c @@ -643,6 +643,11 @@ processParms (ast * func, return 1; } + if (IS_VOID(actParm->etype)) { + werror (E_VOID_VALUE_USED); + return 1; + } + /* If this is a varargs function... */ if (!defParm && actParm && IFFUNC_HASVARARGS(func->ftype)) {