diff options
author | Steve Ellcey <sellcey@mips.com> | 2014-01-29 09:54:34 -0800 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2014-02-02 21:35:24 +0100 |
commit | d31846a1b993cfe4b7d983db0e5c140dac3b0220 (patch) | |
tree | fc5ee6797215cde817b2e84f5224c041ec115d1e /libc/sysdeps/linux/mips/bits/atomic.h | |
parent | 0f363664b5c903feba16b87eb565608c28c4e504 (diff) |
mips: silence 'set but not used' warnings
This patch uses 'attribute_unused' to clean up a number of warnings
messages that are generated when doing a MIPS build. All of the
changes are in MIPS specific files and there are no code changes
other then adding the unused attribute where needed.
Signed-off-by: Steve Ellcey <sellcey@mips.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/sysdeps/linux/mips/bits/atomic.h')
-rw-r--r-- | libc/sysdeps/linux/mips/bits/atomic.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libc/sysdeps/linux/mips/bits/atomic.h b/libc/sysdeps/linux/mips/bits/atomic.h index 9a9f60f85..60ee0a6f8 100644 --- a/libc/sysdeps/linux/mips/bits/atomic.h +++ b/libc/sysdeps/linux/mips/bits/atomic.h @@ -135,22 +135,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; }) @@ -158,22 +158,22 @@ typedef uintmax_t uatomic_max_t; successful or not. */ #define __arch_compare_and_exchange_val_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); \ (__typeof (*mem))__prev; }) #define __arch_compare_and_exchange_val_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); \ (__typeof (*mem))__prev; }) #define __arch_compare_and_exchange_val_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); \ (__typeof (*mem))__prev; }) #define __arch_compare_and_exchange_val_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); \ (__typeof (*mem))__prev; }) |