fixed bug: tp_up is field in union; be more careful
give warning for struct/union declarations in prototypes
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user