diff options
author | Paolo Carlini <paolo@gcc.gnu.org> | 2011-11-04 17:51:20 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2011-11-04 17:51:20 +0000 |
commit | d269f788e8e54567a223e49af95b266601285ba9 (patch) | |
tree | 46c8c95b89a198bf23e0215ef4482224c301293d /gcc | |
parent | 669cc68c376f9caa8ed5ab7f62bc757fa8d096cb (diff) | |
download | gcc-d269f788e8e54567a223e49af95b266601285ba9.zip gcc-d269f788e8e54567a223e49af95b266601285ba9.tar.gz gcc-d269f788e8e54567a223e49af95b266601285ba9.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/cp/mangle.c | 2 | ||||
-rw-r--r-- | gcc/cp/typeck.c | 2 |
3 files changed, 8 insertions, 3 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index f984056..2a1db7a 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -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. diff --git a/gcc/cp/mangle.c b/gcc/cp/mangle.c index 7c907b8..548998a 100644 --- a/gcc/cp/mangle.c +++ b/gcc/cp/mangle.c @@ -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); diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c index 58bb14f..f4e45b4 100644 --- a/gcc/cp/typeck.c +++ b/gcc/cp/typeck.c @@ -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); |