This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] libgcc: Don't use "unused" in gthr-single.h


Header files shouldn't use identifiers in the application namespace.
gth-single.h does however; this makes the libstdc++ testsuite
all_attributes.cc fail for targets without software threads.

Is this okay for mainline?  And 4.9, 4.8?


Segher


2015-02-22  Segher Boessenkool  <segher@kernel.crashing.org>

libgcc/
	* gthr-single.h: Use __unused__ instead of unused.

---
 libgcc/gthr-single.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libgcc/gthr-single.h b/libgcc/gthr-single.h
index f084fe2..bddded4 100644
--- a/libgcc/gthr-single.h
+++ b/libgcc/gthr-single.h
@@ -38,7 +38,7 @@ typedef int __gthread_recursive_mutex_t;
 #define __GTHREAD_MUTEX_INIT_FUNCTION(mx)
 #define __GTHREAD_RECURSIVE_MUTEX_INIT 0
 
-#define UNUSED __attribute__((unused))
+#define UNUSED __attribute__((__unused__))
 
 #ifdef _LIBOBJC
 
-- 
1.8.1.4


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]