From 7a18c01a7c42a09e8b2c539986ae74023d183228 Mon Sep 17 00:00:00 2001 From: eck Date: Tue, 31 Oct 1989 10:48:20 +0000 Subject: [PATCH] relaxed typechecking a little bit --- lang/cem/cemcom.ansi/ch3.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lang/cem/cemcom.ansi/ch3.c b/lang/cem/cemcom.ansi/ch3.c index d1ccddfd1..b234070ef 100644 --- a/lang/cem/cemcom.ansi/ch3.c +++ b/lang/cem/cemcom.ansi/ch3.c @@ -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) { -- 2.34.1