Commit fe6f27c7 by Paolo Carlini Committed by Paolo Carlini

attribs.c (decl_attributes): Guard inform with the return value of the preceding warning.

2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>

	* attribs.c (decl_attributes): Guard inform with the return value
	of the preceding warning.

From-SVN: r225402
parent cd5a9a74
2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
* attribs.c (decl_attributes): Guard inform with the return value
of the preceding warning.
2015-07-03 James Greenhalgh <james.greenhalgh@arm.com> 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
* doc/invoke.texi (moverride): Move to correct section. * doc/invoke.texi (moverride): Move to correct section.
......
...@@ -469,10 +469,10 @@ decl_attributes (tree *node, tree attributes, int flags) ...@@ -469,10 +469,10 @@ decl_attributes (tree *node, tree attributes, int flags)
/* This is a c++11 attribute that appertains to a /* This is a c++11 attribute that appertains to a
type-specifier, outside of the definition of, a class type-specifier, outside of the definition of, a class
type. Ignore it. */ type. Ignore it. */
warning (OPT_Wattributes, "attribute ignored"); if (warning (OPT_Wattributes, "attribute ignored"))
inform (input_location, inform (input_location,
"an attribute that appertains to a type-specifier " "an attribute that appertains to a type-specifier "
"is ignored"); "is ignored");
continue; continue;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment