Bug fix in old-style/new-style mixing

This commit is contained in:
ceriel 1992-03-02 14:37:37 +00:00
parent a8b2fae0da
commit 661597162d
2 changed files with 9 additions and 3 deletions

View file

@ -487,9 +487,13 @@ check_pseudoproto(pl, opl, diag)
return 0; return 0;
} }
if (opl->pl_flag & PL_VOID) { if (opl->pl_flag & PL_VOID) {
if (diag && !(pl->pl_flag & PL_VOID)) if (!(pl->pl_flag & PL_VOID)) {
strict("function is defined without parameters"); if (diag) {
return 0; strict("function is defined without parameters");
}
return 0;
}
return 1;
} }
while (pl && opl) { while (pl && opl) {
if (!equal_type(pl->pl_type, opl->pl_type, -1, diag)) { if (!equal_type(pl->pl_type, opl->pl_type, -1, diag)) {

View file

@ -177,6 +177,8 @@ make_macros: Makefile
echo 'COPTIONS=$(COPTIONS)' >> make_macros echo 'COPTIONS=$(COPTIONS)' >> make_macros
echo 'LDOPTIONS=$(LDOPTIONS)' >> make_macros echo 'LDOPTIONS=$(LDOPTIONS)' >> make_macros
echo 'LINT=$(LINT)' >> make_macros echo 'LINT=$(LINT)' >> make_macros
echo 'LINTSUF=$(LINTSUF)' >> make_macros
echo 'LINTPREF=$(LINTPREF)' >> make_macros
echo 'LINTOPTIONS=$(LINTOPTIONS)' >> make_macros echo 'LINTOPTIONS=$(LINTOPTIONS)' >> make_macros
echo 'SUF=$(SUF)' >> make_macros echo 'SUF=$(SUF)' >> make_macros
echo 'LIBSUF=$(LIBSUF)' >> make_macros echo 'LIBSUF=$(LIBSUF)' >> make_macros