[01/17] sim: arm: fix -Wunused-but-set-variable warnings

Message ID 20231207035937.14920-1-vapier@gentoo.org
State New
Headers
Series [01/17] sim: arm: fix -Wunused-but-set-variable warnings |

Commit Message

Mike Frysinger Dec. 7, 2023, 3:59 a.m. UTC
  ---
 sim/arm/armos.c | 2 --
 1 file changed, 2 deletions(-)
  

Patch

diff --git a/sim/arm/armos.c b/sim/arm/armos.c
index 9cf238ac8e25..42d1dfb4ed1f 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...  */