public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1a78e3
)
Added warning for initializer of formal parameter (the syntax allows this!)
author
ceriel
<none@none>
Wed, 2 Aug 1989 11:26:51 +0000
(11:26 +0000)
committer
ceriel
<none@none>
Wed, 2 Aug 1989 11:26:51 +0000
(11:26 +0000)
lang/cem/cemcom/declar.g
patch
|
blob
|
history
diff --git
a/lang/cem/cemcom/declar.g
b/lang/cem/cemcom/declar.g
index
dc24efd
..
a858273
100644
(file)
--- 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)");
}
[
'='