Added warning for initializer of formal parameter (the syntax allows this!)

This commit is contained in:
ceriel 1989-08-02 11:26:51 +00:00
parent 158595b208
commit 4fc6d6e73d

View File

@ -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)");
}
[
'='