aboutsummaryrefslogtreecommitdiff
path: root/sim/arm
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2023-12-06 06:34:44 -0700
committerMike Frysinger <vapier@gentoo.org>2023-12-07 21:41:27 -0700
commitad4106f8dd948bf04cb1c427124c711d3eb72766 (patch)
tree366833c72cb50ea6537baddeeec2a17e564517f0 /sim/arm
parentc26f7543b2ccd006e8251be0b62a4a785ed1cc2f (diff)
downloadgdb-ad4106f8dd948bf04cb1c427124c711d3eb72766.zip
gdb-ad4106f8dd948bf04cb1c427124c711d3eb72766.tar.gz
gdb-ad4106f8dd948bf04cb1c427124c711d3eb72766.tar.bz2
sim: arm: fix -Wunused-but-set-variable warnings
Diffstat (limited to 'sim/arm')
-rw-r--r--sim/arm/armos.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sim/arm/armos.c b/sim/arm/armos.c
index 9cf238a..42d1dfb 100644
--- a/sim/arm/armos.c
+++ b/sim/arm/armos.c
@@ -99,7 +99,6 @@ ARMul_OSInit (ARMul_State * state)
#ifndef NOOS
#ifndef VALIDATE
ARMword instr, i, j;
- struct OSblock *OSptr = (struct OSblock *) state->OSptr;
if (state->OSptr == NULL)
{
@@ -111,7 +110,6 @@ ARMul_OSInit (ARMul_State * state)
}
}
- OSptr = (struct OSblock *) state->OSptr;
state->Reg[13] = ADDRSUPERSTACK; /* Set up a stack for the current mode... */
ARMul_SetReg (state, SVC32MODE, 13, ADDRSUPERSTACK);/* ...and for supervisor mode... */
ARMul_SetReg (state, ABORT32MODE, 13, ADDRSUPERSTACK);/* ...and for abort 32 mode... */