Avoid warnings when including atomic.h.
authorCarlos O'Donell <carlos@systemhalted.org>
Sun, 22 Nov 2009 21:44:05 +0000 (16:44 -0500)
committerCarlos O'Donell <carlos@systemhalted.org>
Wed, 25 Nov 2009 23:17:27 +0000 (18:17 -0500)
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.

ChangeLog.hppa
sysdeps/unix/sysv/linux/hppa/bits/atomic.h

index dbd0ed5..ac6acba 100644 (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]
index d7c8b9d..120b19b 100644 (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.