Added warning for initializer of formal parameter (the syntax allows this!)
This commit is contained in:
parent
a1a78e3b70
commit
b1347283b9
@ -193,6 +193,8 @@ initializer(struct idf *idf; int sc;)
|
|||||||
error("illegal initialization of function");
|
error("illegal initialization of function");
|
||||||
idf->id_def->df_type->tp_fund = ERRONEOUS;
|
idf->id_def->df_type->tp_fund = ERRONEOUS;
|
||||||
}
|
}
|
||||||
|
if (level == L_FORMAL2)
|
||||||
|
warning("illegal initialization of formal parameter (ignored)");
|
||||||
}
|
}
|
||||||
[
|
[
|
||||||
'='
|
'='
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user