Bug fix in old-style/new-style mixing
authorceriel <none@none>
Mon, 2 Mar 1992 14:37:37 +0000 (14:37 +0000)
committerceriel <none@none>
Mon, 2 Mar 1992 14:37:37 +0000 (14:37 +0000)
lang/cem/cemcom.ansi/ch3.c
lang/cem/cemcom.ansi/proto.make

index 42b8eaa..3593016 100644 (file)
@@ -487,9 +487,13 @@ check_pseudoproto(pl, opl, diag)
                return 0;
        }
        if (opl->pl_flag & PL_VOID) {
-               if (diag && !(pl->pl_flag & PL_VOID))
-                       strict("function is defined without parameters");
-               return 0;
+               if (!(pl->pl_flag & PL_VOID)) {
+                       if (diag) {
+                               strict("function is defined without parameters");
+                       }
+                       return 0;
+               }
+               return 1;
        }
        while (pl && opl) {
            if (!equal_type(pl->pl_type, opl->pl_type, -1, diag)) {
index aa01915..165444a 100644 (file)
@@ -177,6 +177,8 @@ make_macros:        Makefile
                echo 'COPTIONS=$(COPTIONS)' >> make_macros
                echo 'LDOPTIONS=$(LDOPTIONS)' >> make_macros
                echo 'LINT=$(LINT)' >> make_macros
+               echo 'LINTSUF=$(LINTSUF)' >> make_macros
+               echo 'LINTPREF=$(LINTPREF)' >> make_macros
                echo 'LINTOPTIONS=$(LINTOPTIONS)' >> make_macros
                echo 'SUF=$(SUF)' >> make_macros
                echo 'LIBSUF=$(LIBSUF)' >> make_macros