[11/17] sim: mcore: fix -Wunused-but-set-variable warnings

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

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 fail Patch failed to apply
linaro-tcwg-bot/tcwg_gdb_build--master-arm fail Patch failed to apply

Commit Message

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

Patch

diff --git a/sim/mcore/interp.c b/sim/mcore/interp.c
index 7561c440729d..8bfb745a11f2 100644
--- a/sim/mcore/interp.c
+++ b/sim/mcore/interp.c
@@ -332,8 +332,6 @@  step_once (SIM_DESC sd, SIM_CPU *cpu)
 
   /* TODO: Unindent this block.  */
     {
-      int32_t oldpc;
-
       insts ++;
 
       if (pc & 02)
@@ -408,8 +406,6 @@  step_once (SIM_DESC sd, SIM_CPU *cpu)
       if (tracing)
 	fprintf (stderr, "%.4x: inst = %.4x ", pc, inst);
 
-      oldpc = pc;
-
       pc += 2;
 
       switch (inst >> 8)