summaryrefslogtreecommitdiff
path: root/opcodes/mips-formats.h
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@nildram.co.uk>2013-07-17 08:06:11 +0000
committerRichard Sandiford <rsandifo@nildram.co.uk>2013-07-17 08:06:11 +0000
commit4319d2c03ba7fee8370c050b2e20aa28b8c8fecd (patch)
tree1b47a4ac1f489e692559b34626fafc3352f0cd43 /opcodes/mips-formats.h
parent164a2c35d1b1df0dbcacc9b9ae6540a6ab7fa822 (diff)
downloadbinutils-redhat-4319d2c03ba7fee8370c050b2e20aa28b8c8fecd.tar.gz
opcodes/
* mips-formats.h (MAPPED_INT, MAPPED_REG, REG_PAIR): Add ATTRIBUTE_UNUSED.
Diffstat (limited to 'opcodes/mips-formats.h')
-rw-r--r--opcodes/mips-formats.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/opcodes/mips-formats.h b/opcodes/mips-formats.h
index 7deba5e0eb..c55bb27a03 100644
--- a/opcodes/mips-formats.h
+++ b/opcodes/mips-formats.h
@@ -45,7 +45,8 @@
#define MAPPED_INT(SIZE, LSB, MAP, PRINT_HEX) \
{ \
- typedef char static_assert[(1 << (SIZE)) == ARRAY_SIZE (MAP)]; \
+ typedef char ATTRIBUTE_UNUSED \
+ static_assert[(1 << (SIZE)) == ARRAY_SIZE (MAP)]; \
static const struct mips_mapped_int_operand op = { \
{ OP_MAPPED_INT, SIZE, LSB }, MAP, PRINT_HEX \
}; \
@@ -70,7 +71,8 @@
#define MAPPED_REG(SIZE, LSB, BANK, MAP) \
{ \
- typedef char static_assert[(1 << (SIZE)) == ARRAY_SIZE (MAP)]; \
+ typedef char ATTRIBUTE_UNUSED \
+ static_assert[(1 << (SIZE)) == ARRAY_SIZE (MAP)]; \
static const struct mips_reg_operand op = { \
{ OP_REG, SIZE, LSB }, OP_REG_##BANK, MAP \
}; \
@@ -79,8 +81,10 @@
#define REG_PAIR(SIZE, LSB, BANK, MAP) \
{ \
- typedef char static_assert1[(1 << (SIZE)) == ARRAY_SIZE (MAP##1)]; \
- typedef char static_assert2[(1 << (SIZE)) == ARRAY_SIZE (MAP##2)]; \
+ typedef char ATTRIBUTE_UNUSED \
+ static_assert1[(1 << (SIZE)) == ARRAY_SIZE (MAP##1)]; \
+ typedef char ATTRIBUTE_UNUSED \
+ static_assert2[(1 << (SIZE)) == ARRAY_SIZE (MAP##2)]; \
static const struct mips_reg_pair_operand op = { \
{ OP_REG_PAIR, SIZE, LSB }, OP_REG_##BANK, MAP##1, MAP##2 \
}; \