aboutsummaryrefslogtreecommitdiff
path: root/opcodes/aarch64-asm.c
diff options
context:
space:
mode:
authorAndrew Carlotti <andrew.carlotti@arm.com>2024-01-23 18:22:12 +0000
committerAndrew Carlotti <andrew.carlotti@arm.com>2024-01-24 12:14:59 +0000
commitf895041bb9c6b05ddb457ce24fd8cb33880fe375 (patch)
treea1e383b9995249056614ca70629ed0f44143a682 /opcodes/aarch64-asm.c
parent601c741d5ce6cae53dad8b19da8ed9c5cae4b797 (diff)
downloadgdb-f895041bb9c6b05ddb457ce24fd8cb33880fe375.zip
gdb-f895041bb9c6b05ddb457ce24fd8cb33880fe375.tar.gz
gdb-f895041bb9c6b05ddb457ce24fd8cb33880fe375.tar.bz2
aarch64: Eliminate unused variable warnings with -DNDEBUG
Diffstat (limited to 'opcodes/aarch64-asm.c')
-rw-r--r--opcodes/aarch64-asm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/opcodes/aarch64-asm.c b/opcodes/aarch64-asm.c
index 565c4b1..29e96e2 100644
--- a/opcodes/aarch64-asm.c
+++ b/opcodes/aarch64-asm.c
@@ -1325,7 +1325,7 @@ aarch64_ins_sve_strided_reglist (const aarch64_operand *self,
ATTRIBUTE_UNUSED)
{
unsigned int num_regs = get_operand_specific_data (self);
- unsigned int mask = 16 | (16 / num_regs - 1);
+ unsigned int mask ATTRIBUTE_UNUSED = 16 | (16 / num_regs - 1);
unsigned int val = info->reglist.first_regno;
assert ((val & mask) == val);
insert_field (self->fields[0], code, val >> 4, 0);