parmlist_tags_warning): Only suppress warning on union if anonymous.
From-SVN: r14638
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 295e594..125f0f4 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -5380,7 +5380,7 @@
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",