atomic.cc (atomic_flag_test_and_set_explicit, [...]): Suppress unused parameter warnings.
authorPaolo Carlini <paolo.carlini@oracle.com>
Sat, 24 May 2008 10:47:14 +0000 (10:47 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sat, 24 May 2008 10:47:14 +0000 (10:47 +0000)
2008-05-24  Paolo Carlini  <paolo.carlini@oracle.com>

* src/atomic.cc (atomic_flag_test_and_set_explicit,
atomic_flag_clear_explicit): Suppress unused parameter warnings.

From-SVN: r135848

libstdc++-v3/ChangeLog
libstdc++-v3/src/atomic.cc

index ca2eb74234a013489f64e9b0ed2408bc6bed3fd9..657bde17864872c6ac5f058ba4e41dc42a6f0954 100644 (file)
@@ -1,3 +1,8 @@
+2008-05-24  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       * src/atomic.cc (atomic_flag_test_and_set_explicit,
+       atomic_flag_clear_explicit): Suppress unused parameter warnings.
+
 2008-05-23  Paolo Carlini  <paolo.carlini@oracle.com>
 
        * include/std/tuple: Replace int -> size_t throughout per DR 775. 
index 46d3f7698e90eda22bb0c8860635f4426cf10919..228f92f91d0f6d88f29ee1a599a40d3af96c53ff 100644 (file)
@@ -52,7 +52,8 @@ namespace std
 
   bool 
   atomic_flag_test_and_set_explicit(volatile atomic_flag* __a, 
-                                   memory_order __x)
+                                   memory_order __x
+                                   __attribute__ ((__unused__)))
   {
 #ifdef _GLIBCXX_ATOMIC_BUILTINS_1
     if (__x >= memory_order_acq_rel)
@@ -70,7 +71,8 @@ namespace std
   { return atomic_flag_test_and_set_explicit(__a, memory_order_seq_cst); }
   
   void 
-  atomic_flag_clear_explicit(volatile atomic_flag* __a, memory_order __x)
+  atomic_flag_clear_explicit(volatile atomic_flag* __a,
+                            memory_order __x __attribute__ ((__unused__)))
   {
 #ifdef _GLIBCXX_ATOMIC_BUILTINS_1
     __sync_lock_release(&(__a->_M_base._M_b));