From f97a942f6c495dd54d7184aa2bd340dcb34faf0f Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Sat, 24 May 2008 10:47:14 +0000 Subject: [PATCH] atomic.cc (atomic_flag_test_and_set_explicit, [...]): Suppress unused parameter warnings. 2008-05-24 Paolo Carlini * src/atomic.cc (atomic_flag_test_and_set_explicit, atomic_flag_clear_explicit): Suppress unused parameter warnings. From-SVN: r135848 --- libstdc++-v3/ChangeLog | 5 +++++ libstdc++-v3/src/atomic.cc | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index ca2eb74234a..657bde17864 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2008-05-24 Paolo Carlini + + * src/atomic.cc (atomic_flag_test_and_set_explicit, + atomic_flag_clear_explicit): Suppress unused parameter warnings. + 2008-05-23 Paolo Carlini * include/std/tuple: Replace int -> size_t throughout per DR 775. diff --git a/libstdc++-v3/src/atomic.cc b/libstdc++-v3/src/atomic.cc index 46d3f7698e9..228f92f91d0 100644 --- a/libstdc++-v3/src/atomic.cc +++ b/libstdc++-v3/src/atomic.cc @@ -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)); -- 2.30.2