relaxed typechecking a little bit
authoreck <none@none>
Tue, 31 Oct 1989 10:48:20 +0000 (10:48 +0000)
committereck <none@none>
Tue, 31 Oct 1989 10:48:20 +0000 (10:48 +0000)
lang/cem/cemcom.ansi/ch3.c

index d1ccddf..b234070 100644 (file)
@@ -416,13 +416,13 @@ check_pseudoproto(pl, opl)
 
        if (pl->pl_flag & PL_ELLIPSIS) {
                error("illegal ellipsis terminator");
+               pl->pl_flag |= PL_ERRGIVEN;
+               opl->pl_flag |= PL_ERRGIVEN;
                return 0;
        }
        if (opl->pl_flag & PL_VOID) {
                if (!(pl->pl_flag & PL_VOID))
-                       error("function is defined without parameters");
-               pl->pl_flag |= PL_ERRGIVEN;
-               opl->pl_flag |= PL_ERRGIVEN;
+                       strict("function is defined without parameters");
                return 0;
        }
        while (pl && opl) {