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]

libstdc++/11062: trivial patch for atomicity.h


Hi,

Please use __attribute__ ((__unused__)) instead, since the plain
spelling ((unused)) without underscores does conflict with otherwise
perfectly standard-complying sources which declare "unused" somehow.

Cheers
    -richy.
-- 
Richard B. Kreckel
<Richard.Kreckel@GiNaC.DE>


diff -Naur libstdc++-v3.old/ChangeLog libstdc++-v3/ChangeLog
--- libstdc++-v3.old/ChangeLog	2003-05-14 02:11:21.000000000 +0200
+++ libstdc++-v3/ChangeLog	2003-06-02 13:37:03.000000000 +0200
@@ -1,3 +1,10 @@
+2003-06-02  Richard Kreckel  <Richard.Kreckel@GiNaC.DE>
+
+	libstdc++/11062
+	* config/cpu/mips/bits/atomicity.h: Change __attribute__
+	((unused)) to __attribute__ ((__unused__)).
+	* config/os/aix/atomicity.h: Same.
+
 2003-05-13  Release Manager

 	* GCC 3.3 Released.
diff -Naur libstdc++-v3.old/config/cpu/mips/atomicity.h libstdc++-v3/config/cpu/mips/atomicity.h
--- libstdc++-v3.old/config/cpu/mips/atomicity.h	2002-07-08 21:41:57.000000000 +0200
+++ libstdc++-v3/config/cpu/mips/atomicity.h	2003-06-02 13:35:21.000000000 +0200
@@ -33,7 +33,7 @@
 typedef int _Atomic_word;

 static inline int
-__attribute__ ((unused))
+__attribute__ ((__unused__))
 __exchange_and_add (volatile _Atomic_word *__mem, int __val)
 {
   int __result, __tmp;
@@ -57,7 +57,7 @@
 }

 static inline void
-__attribute__ ((unused))
+__attribute__ ((__unused__))
 __atomic_add (volatile _Atomic_word *__mem, int __val)
 {
   int __result;
diff -Naur libstdc++-v3.old/config/os/aix/atomicity.h libstdc++-v3/config/os/aix/atomicity.h
--- libstdc++-v3.old/config/os/aix/atomicity.h	2002-06-24 07:48:44.000000000 +0200
+++ libstdc++-v3/config/os/aix/atomicity.h	2003-06-02 13:35:54.000000000 +0200
@@ -43,14 +43,14 @@
 #include <sys/atomic_op.h>

 static inline int
-__attribute__ ((unused))
+__attribute__ ((__unused__))
 __exchange_and_add (atomic_p __mem, int __val)
 {
   return fetch_and_add (__mem, __val);
 }

 static inline void
-__attribute__ ((unused))
+__attribute__ ((__unused__))
 __atomic_add (atomic_p __mem, int __val)
 {
   (void) fetch_and_add (__mem, __val);


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