static tree grokparms (), grokdeclarator ();
tree pushdecl ();
tree builtin_function ();
+void shadow_tag_warned ();
static tree lookup_tag ();
static tree lookup_tag_reverse ();
void
shadow_tag (declspecs)
tree declspecs;
+{
+ shadow_tag_warned (declspecs, 0);
+}
+
+void
+shadow_tag_warned (declspecs, warned)
+ tree declspecs;
+ int warned;
{
int found_tag = 0;
- int warned = 0;
register tree link;
pending_invalid_xref = 0;
if (name == 0)
{
- if (code != ENUMERAL_TYPE) /* Empty unnamed enum OK */
+ if (!warned && code != ENUMERAL_TYPE) /* Empty unnamed enum OK */
{
pedwarn ("unnamed struct/union that defines no instances");
warned = 1;