From c99faa9291f4193fa96f1fd9a8857b3925165676 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 21 Dec 2023 20:08:35 -0500 Subject: [PATCH] sim: cris: fix -Wshadow=local warnings Delete redundant local decls. --- sim/cris/mloop.in | 1 - sim/cris/sim-if.c | 1 - 2 files changed, 2 deletions(-) diff --git a/sim/cris/mloop.in b/sim/cris/mloop.in index d0f3ee5..9e3147a 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 0680368..3919df0 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; -- 2.7.4