From: Carlos O'Donell Date: Sun, 22 Nov 2009 21:44:05 +0000 (-0500) Subject: Avoid warnings when including atomic.h. X-Git-Tag: upstream/2.30~10627^2~558 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8fe357d5c6517be5718be681cf8ff89a191a8e9b;p=external%2Fglibc.git 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 * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Avoid warnings by casting oldval to int. --- diff --git a/ChangeLog.hppa b/ChangeLog.hppa index dbd0ed5..ac6acba 100644 --- a/ChangeLog.hppa +++ b/ChangeLog.hppa @@ -1,3 +1,8 @@ +2009-11-22 Carlos O'Donell + + * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Avoid warnings + by casting oldval to int. + 2009-11-15 Carlos O'Donell [BZ #6676] diff --git a/sysdeps/unix/sysv/linux/hppa/bits/atomic.h b/sysdeps/unix/sysv/linux/hppa/bits/atomic.h index d7c8b9d..120b19b 100644 --- a/sysdeps/unix/sysv/linux/hppa/bits/atomic.h +++ b/sysdeps/unix/sysv/linux/hppa/bits/atomic.h @@ -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.