fixed bug #476281
authorjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 30 Oct 2001 11:26:51 +0000 (11:26 +0000)
committerjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 30 Oct 2001 11:26:51 +0000 (11:26 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1465 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/SDCCast.c

index 99e4bef7f7683784d112cbbfc2550d5b1c9cb255..9dfec48e8d0d0ad50c56340a631bef0fe04f25a8 100644 (file)
@@ -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))
     {