From: ceriel Date: Mon, 2 Mar 1992 14:37:37 +0000 (+0000) Subject: Bug fix in old-style/new-style mixing X-Git-Tag: release-5-5~503 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=661597162d264f6c03c4bae383299ea2d855e516;p=ack.git Bug fix in old-style/new-style mixing --- diff --git a/lang/cem/cemcom.ansi/ch3.c b/lang/cem/cemcom.ansi/ch3.c index 42b8eaa70..35930162b 100644 --- a/lang/cem/cemcom.ansi/ch3.c +++ b/lang/cem/cemcom.ansi/ch3.c @@ -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)) { diff --git a/lang/cem/cemcom.ansi/proto.make b/lang/cem/cemcom.ansi/proto.make index aa01915e1..165444a69 100644 --- a/lang/cem/cemcom.ansi/proto.make +++ b/lang/cem/cemcom.ansi/proto.make @@ -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