===================================================================
@@ -469,10 +469,10 @@ decl_attributes (tree *node, tree attributes, int
/* This is a c++11 attribute that appertains to a
type-specifier, outside of the definition of, a class
type. Ignore it. */
- warning (OPT_Wattributes, "attribute ignored");
- inform (input_location,
- "an attribute that appertains to a type-specifier "
- "is ignored");
+ if (warning (OPT_Wattributes, "attribute ignored"))
+ inform (input_location,
+ "an attribute that appertains to a type-specifier "
+ "is ignored");
continue;
}