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:
Carlos O'Donell 2009-11-22 16:44:05 -05:00
parent b00ec94881
commit 8fe357d5c6
2 changed files with 6 additions and 1 deletions

View File

@ -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]

View File

@ -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.