From: ceriel Date: Wed, 2 Aug 1989 11:26:51 +0000 (+0000) Subject: Added warning for initializer of formal parameter (the syntax allows this!) X-Git-Tag: release-5-5~2298 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=b1347283b907335297c90d295b4b8295035c98be;p=ack.git Added warning for initializer of formal parameter (the syntax allows this!) --- diff --git a/lang/cem/cemcom/declar.g b/lang/cem/cemcom/declar.g index dc24efdb3..a85827342 100644 --- a/lang/cem/cemcom/declar.g +++ b/lang/cem/cemcom/declar.g @@ -193,6 +193,8 @@ initializer(struct idf *idf; int sc;) error("illegal initialization of function"); idf->id_def->df_type->tp_fund = ERRONEOUS; } + if (level == L_FORMAL2) + warning("illegal initialization of formal parameter (ignored)"); } [ '='