From a7710ed8d536c1efa8d8e0da2e67f52b39620274 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Fri, 27 May 2022 00:42:02 -0700 Subject: [PATCH] ARM: Fix warning spew --- src/arm/isa-arm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/arm/isa-arm.c b/src/arm/isa-arm.c index 576eeb874..b3bb3c9da 100644 --- a/src/arm/isa-arm.c +++ b/src/arm/isa-arm.c @@ -287,7 +287,7 @@ ATTRIBUTE_NOINLINE static void _neutralS(struct ARMCore* cpu, int32_t d) { SHIFTER(cpu, opcode); \ int rd = (opcode >> 12) & 0xF; \ int rn = (opcode >> 16) & 0xF; \ - int32_t n = cpu->gprs[rn]; \ + int32_t n ATTRIBUTE_UNUSED = cpu->gprs[rn]; \ if (UNLIKELY(rn == ARM_PC && (opcode & 0x02000010) == 0x00000010)) { \ n += WORD_SIZE_ARM; \ } \ @@ -358,7 +358,7 @@ ATTRIBUTE_NOINLINE static void _neutralS(struct ARMCore* cpu, int32_t d) { uint32_t address; \ int rn = (opcode >> 16) & 0xF; \ int rd = (opcode >> 12) & 0xF; \ - int32_t d = cpu->gprs[rd]; \ + int32_t d ATTRIBUTE_UNUSED = cpu->gprs[rd]; \ if (UNLIKELY(rd == ARM_PC)) { \ d += WORD_SIZE_ARM; \ } \