[05/15] sim: cris: fix -Wshadow=local warnings

Message ID 20231222012355.7504-5-vapier@gentoo.org
State New
Headers
Series [01/15] sim: aarch64: fix -Wshadow=local 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. 22, 2023, 1:23 a.m. UTC
  Delete redundant local decls.
---
 sim/cris/mloop.in | 1 -
 sim/cris/sim-if.c | 1 -
 2 files changed, 2 deletions(-)
  

Patch

diff --git a/sim/cris/mloop.in b/sim/cris/mloop.in
index d0f3ee534167..9e3147a917f0 100644
--- a/sim/cris/mloop.in
+++ b/sim/cris/mloop.in
@@ -234,7 +234,6 @@  cat <<EOF
 	     for invalid programs.  */
 	  if (insn != 0 && CGEN_ATTR_VALUE (NULL, idesc->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 06803687ec7c..3919df0381ae 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;