(__arch_compare_and_exchange_val_8_acq,
authordrepper <drepper>
Mon, 5 May 2003 18:20:30 +0000 (18:20 +0000)
committerdrepper <drepper>
Mon, 5 May 2003 18:20:30 +0000 (18:20 +0000)
__arch_compare_and_exchange_val_16_acq): Cast 0 to mem's type.

sysdeps/sparc/sparc64/bits/atomic.h

index bb3c91d..4df3b25 100644 (file)
@@ -47,10 +47,10 @@ typedef uintmax_t uatomic_max_t;
 
 
 #define __arch_compare_and_exchange_val_8_acq(mem, newval, oldval) \
-  (abort (), 0)
+  (abort (), (__typeof (*mem)) 0)
 
 #define __arch_compare_and_exchange_val_16_acq(mem, newval, oldval) \
-  (abort (), 0)
+  (abort (), (__typeof (*mem)) 0)
 
 #define __arch_compare_and_exchange_val_32_acq(mem, newval, oldval) \
 ({                                                                           \