From: Mike Frysinger Date: Thu, 7 Dec 2023 03:07:50 +0000 (-0700) Subject: sim: mcore: fix -Wunused-but-set-variable warnings X-Git-Tag: binutils-2_42~668 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2a04b8c9085b3d1d198711ae08e5414843f1a9be;p=thirdparty%2Fbinutils-gdb.git sim: mcore: fix -Wunused-but-set-variable warnings --- diff --git a/sim/mcore/interp.c b/sim/mcore/interp.c index 7561c440729..8bfb745a11f 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)