mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 13:00:06 +00:00
Fix "set but not used" warnings from MIPS bits/atomic.h.
This commit is contained in:
parent
150dc1a05a
commit
018f9a78d3
@ -1,3 +1,12 @@
|
||||
2012-11-17 Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
* sysdeps/mips/bits/atomic.h
|
||||
(__arch_compare_and_exchange_bool_8_int): Mark __PREV variable
|
||||
with __attribute__ ((unused)).
|
||||
(__arch_compare_and_exchange_bool_16_int): Likewise.
|
||||
(__arch_compare_and_exchange_bool_32_int): Likewise.
|
||||
(__arch_compare_and_exchange_bool_64_int): Likewise.
|
||||
|
||||
2012-11-06 Maxim Kuvyrkov <maxim@codesourcery.com>
|
||||
|
||||
* sysdeps/mips/memmove.c: New file. Use memcpy for forward memmove.
|
||||
|
@ -261,22 +261,22 @@ typedef uintmax_t uatomic_max_t;
|
||||
/* For all "bool" routines, we return FALSE if exchange succesful. */
|
||||
|
||||
# define __arch_compare_and_exchange_bool_8_int(mem, new, old, rel, acq) \
|
||||
({ typeof (*mem) __prev; int __cmp; \
|
||||
({ typeof (*mem) __prev __attribute__ ((unused)); int __cmp; \
|
||||
__arch_compare_and_exchange_xxx_8_int(mem, new, old, rel, acq); \
|
||||
!__cmp; })
|
||||
|
||||
# define __arch_compare_and_exchange_bool_16_int(mem, new, old, rel, acq) \
|
||||
({ typeof (*mem) __prev; int __cmp; \
|
||||
({ typeof (*mem) __prev __attribute__ ((unused)); int __cmp; \
|
||||
__arch_compare_and_exchange_xxx_16_int(mem, new, old, rel, acq); \
|
||||
!__cmp; })
|
||||
|
||||
# define __arch_compare_and_exchange_bool_32_int(mem, new, old, rel, acq) \
|
||||
({ typeof (*mem) __prev; int __cmp; \
|
||||
({ typeof (*mem) __prev __attribute__ ((unused)); int __cmp; \
|
||||
__arch_compare_and_exchange_xxx_32_int(mem, new, old, rel, acq); \
|
||||
!__cmp; })
|
||||
|
||||
# define __arch_compare_and_exchange_bool_64_int(mem, new, old, rel, acq) \
|
||||
({ typeof (*mem) __prev; int __cmp; \
|
||||
({ typeof (*mem) __prev __attribute__ ((unused)); int __cmp; \
|
||||
__arch_compare_and_exchange_xxx_64_int(mem, new, old, rel, acq); \
|
||||
!__cmp; })
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user