parmlist_tags_warning): Only suppress warning on union if anonymous.
From-SVN: r14638
This commit is contained in:
parent
ae0a3dfbf4
commit
293facbcd4
1 changed files with 1 additions and 1 deletions
|
@ -5380,7 +5380,7 @@ parmlist_tags_warning ()
|
|||
enum tree_code code = TREE_CODE (TREE_VALUE (elt));
|
||||
/* An anonymous union parm type is meaningful as a GNU extension.
|
||||
So don't warn for that. */
|
||||
if (code == UNION_TYPE && !pedantic)
|
||||
if (code == UNION_TYPE && TREE_PURPOSE (elt) == 0 && !pedantic)
|
||||
continue;
|
||||
if (TREE_PURPOSE (elt) != 0)
|
||||
warning ("`%s %s' declared inside parameter list",
|
||||
|
|
Loading…
Add table
Reference in a new issue