Commit d269f788 by Paolo Carlini

typeck.c (build_indirect_ref): Use ATTRIBUTE_UNUSED.

2011-11-04  Paolo Carlini  <paolo.carlini@oracle.com>

	* typeck.c (build_indirect_ref): Use ATTRIBUTE_UNUSED.
	* mangle.c (write_unnamed_type_name): Likewise.

From-SVN: r180970
parent 669cc68c
2011-10-09 Magnus Fromreide <magfr@lysator.liu.se>
2011-11-04 Paolo Carlini <paolo.carlini@oracle.com>
* typeck.c (build_indirect_ref): Use ATTRIBUTE_UNUSED.
* mangle.c (write_unnamed_type_name): Likewise.
2011-11-04 Magnus Fromreide <magfr@lysator.liu.se>
* parser.c (cp_parser_enumerator_list): Do not warn about
trailing commas in C++0x mode.
......
......@@ -1339,7 +1339,7 @@ nested_anon_class_index (tree type)
/* <unnamed-type-name> ::= Ut [ <nonnegative number> ] _ */
static void
write_unnamed_type_name (const tree type __attribute__ ((__unused__)))
write_unnamed_type_name (const tree type ATTRIBUTE_UNUSED)
{
int discriminator;
MANGLE_TRACE_TREE ("unnamed-type-name", type);
......
......@@ -2726,7 +2726,7 @@ build_x_indirect_ref (tree expr, ref_operator errorstring,
/* Helper function called from c-common. */
tree
build_indirect_ref (location_t loc __attribute__ ((__unused__)),
build_indirect_ref (location_t loc ATTRIBUTE_UNUSED,
tree ptr, ref_operator errorstring)
{
return cp_build_indirect_ref (ptr, errorstring, tf_warning_or_error);
......
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