From: Mike Frysinger Date: Fri, 22 Dec 2023 01:08:35 +0000 (-0500) Subject: sim: cris: fix -Wshadow=local warnings X-Git-Tag: binutils-2_42~410 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c99faa9291f4193fa96f1fd9a8857b3925165676;p=thirdparty%2Fbinutils-gdb.git sim: cris: fix -Wshadow=local warnings Delete redundant local decls. --- diff --git a/sim/cris/mloop.in b/sim/cris/mloop.in index d0f3ee53416..9e3147a917f 100644 --- a/sim/cris/mloop.in +++ b/sim/cris/mloop.in @@ -234,7 +234,6 @@ cat <attrs, CGEN_INSN_DELAY_SLOT)) { - UHI insn; trace_p = PC_IN_TRACE_RANGE_P (current_cpu, pc); profile_p = PC_IN_PROFILE_RANGE_P (current_cpu, pc); befaft_p = profile_p || trace_p; diff --git a/sim/cris/sim-if.c b/sim/cris/sim-if.c index 06803687ec7..3919df0381a 100644 --- a/sim/cris/sim-if.c +++ b/sim/cris/sim-if.c @@ -761,7 +761,6 @@ sim_open (SIM_OPEN_KIND kind, host_callback *callback, struct bfd *abfd, int len = strlen (name) + 1; USI epp, epp0; USI stacklen; - int i; char **prog_argv = STATE_PROG_ARGV (sd); int my_argc = 0; USI csp;