fixed bug: tp_up is field in union; be more careful

give warning for struct/union declarations in prototypes
This commit is contained in:
eck
1990-01-18 16:58:53 +00:00
parent 35c2daff59
commit 77fc957f64
5 changed files with 22 additions and 15 deletions

View File

@@ -212,6 +212,9 @@ declare_struct(fund, idf, tpp)
else {
/* The struct is new. */
/* Hook in a new struct tag */
if (level <= L_PROTO)
warning("declaration of %s-tag inside parameter list",
symbol2str(fund));
tg = new_tag();
tg->next = *tgp;
*tgp = tg;