mirror of git://gcc.gnu.org/git/gcc.git
atomic.cc (atomic_flag_test_and_set_explicit, [...]): Suppress unused parameter warnings.
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
This commit is contained in:
parent
58272d795a
commit
f97a942f6c
|
@ -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.
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue