public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [C++ Patch, committed as obvious] Use ATTRIBUTE_UNUSED
@ 2011-11-04 18:10 Paolo Carlini
  0 siblings, 0 replies; only message in thread
From: Paolo Carlini @ 2011-11-04 18:10 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 93 bytes --]

Hi,

I bootstrapped and committed the below as obvious.

Thanks,
Paolo.

///////////////////

[-- Attachment #2: CL --]
[-- Type: text/plain, Size: 160 bytes --]

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

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

[-- Attachment #3: patchlet --]
[-- Type: text/plain, Size: 993 bytes --]

Index: typeck.c
===================================================================
--- typeck.c	(revision 180965)
+++ typeck.c	(working copy)
@@ -2726,7 +2726,7 @@ build_x_indirect_ref (tree expr, ref_operator erro
 
 /* 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);
Index: mangle.c
===================================================================
--- mangle.c	(revision 180965)
+++ mangle.c	(working copy)
@@ -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);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-11-04 17:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-04 18:10 [C++ Patch, committed as obvious] Use ATTRIBUTE_UNUSED Paolo Carlini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).