mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-25 02:33:36 +08:00
Avoid warnings when including atomic.h.
Cast oldval to the same type as ret to avoid warnings when including atomic.h. 2009-11-22 Carlos O'Donell <carlos@codesourcery.com> * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Avoid warnings by casting oldval to int.
This commit is contained in:
parent
b00ec94881
commit
8fe357d5c6
@ -1,3 +1,8 @@
|
||||
2009-11-22 Carlos O'Donell <carlos@codesourcery.com>
|
||||
|
||||
* sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Avoid warnings
|
||||
by casting oldval to int.
|
||||
|
||||
2009-11-15 Carlos O'Donell <carlos@codesourcery.com>
|
||||
|
||||
[BZ #6676]
|
||||
|
@ -98,7 +98,7 @@ typedef uintmax_t uatomic_max_t;
|
||||
int ret; \
|
||||
ret = atomic_compare_and_exchange_val_acq(mem, newval, oldval); \
|
||||
/* Return 1 if it was already acquired. */ \
|
||||
(ret != oldval); \
|
||||
(ret != (int)oldval); \
|
||||
})
|
||||
#else
|
||||
# error __ASSUME_LWS_CAS is required to build glibc.
|
||||
|
Loading…
Reference in New Issue
Block a user