]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
typeck.c (build_indirect_ref): Use ATTRIBUTE_UNUSED.
authorPaolo Carlini <paolo@gcc.gnu.org>
Fri, 4 Nov 2011 17:51:20 +0000 (17:51 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Fri, 4 Nov 2011 17:51:20 +0000 (17:51 +0000)
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

gcc/cp/ChangeLog
gcc/cp/mangle.c
gcc/cp/typeck.c

index f984056dafc25f9a0196d79588794139e93654ac..2a1db7abdc2d459b6103089a1c9403ac56ea78a8 100644 (file)
@@ -1,4 +1,9 @@
-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.
index 7c907b83394d479220dd6f99ded817d9df4d7ca9..548998a086f988af0834806deb9413153a66ef37 100644 (file)
@@ -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);
index 58bb14f66833a7c350f7eb9a0fb30119c522fbf2..f4e45b4f034ceb18a46a83c82c47ecea6a3a249c 100644 (file)
@@ -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);