aboutsummaryrefslogtreecommitdiff
path: root/ports/sysdeps
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2012-11-17 03:35:27 +0000
committerJoseph Myers <joseph@codesourcery.com>2012-11-17 03:35:27 +0000
commit018f9a78d3d92a9ede6298a65c5edfef5805d5d6 (patch)
treea1ad6f9c5e597cc17c58d4e03e24d559d944ea18 /ports/sysdeps
parent150dc1a05a8028efb5bfdc79158e631384d1cd5b (diff)
downloadglibc-018f9a78d3d92a9ede6298a65c5edfef5805d5d6.tar
glibc-018f9a78d3d92a9ede6298a65c5edfef5805d5d6.tar.gz
glibc-018f9a78d3d92a9ede6298a65c5edfef5805d5d6.tar.bz2
glibc-018f9a78d3d92a9ede6298a65c5edfef5805d5d6.zip
Fix "set but not used" warnings from MIPS bits/atomic.h.
Diffstat (limited to 'ports/sysdeps')
-rw-r--r--ports/sysdeps/mips/bits/atomic.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/ports/sysdeps/mips/bits/atomic.h b/ports/sysdeps/mips/bits/atomic.h
index 749e166908..c5a26b927d 100644
--- a/ports/sysdeps/mips/bits/atomic.h
+++ b/ports/sysdeps/mips/bits/atomic.h
@@ -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; })