diff options
author | Mike Frysinger <vapier@gentoo.org> | 2023-12-06 20:07:50 -0700 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2023-12-07 21:41:27 -0700 |
commit | 2a04b8c9085b3d1d198711ae08e5414843f1a9be (patch) | |
tree | c635bbf8d6ce46663560f4a589725669f4097068 | |
parent | fca8f1a3dc16518f98980242e3bc6e6c5288e367 (diff) | |
download | gdb-2a04b8c9085b3d1d198711ae08e5414843f1a9be.zip gdb-2a04b8c9085b3d1d198711ae08e5414843f1a9be.tar.gz gdb-2a04b8c9085b3d1d198711ae08e5414843f1a9be.tar.bz2 |
sim: mcore: fix -Wunused-but-set-variable warnings
-rw-r--r-- | sim/mcore/interp.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sim/mcore/interp.c b/sim/mcore/interp.c index 7561c44..8bfb745 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) |