]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
sim: iq2000: fix -Wunused-variable warnings
authorMike Frysinger <vapier@gentoo.org>
Sat, 16 Dec 2023 05:13:17 +0000 (00:13 -0500)
committerMike Frysinger <vapier@gentoo.org>
Tue, 19 Dec 2023 10:51:10 +0000 (05:51 -0500)
sim/iq2000/iq2000.c
sim/iq2000/sim-if.c

index 1b43c12957344f193154cbec0ba95ba3eecb4e3c..087646b59b00b8ccad8894282c10a8ea25e56a5d 100644 (file)
@@ -58,7 +58,6 @@ do_syscall (SIM_CPU *current_cpu, PCADDR pc)
   int syscall = H2T_4 (iq2000bf_h_gr_get (current_cpu, 11));
 #endif
   int syscall_function = iq2000bf_h_gr_get (current_cpu, 4);
-  int i;
   char *buf;
   int PARM1 = iq2000bf_h_gr_get (current_cpu, 5);
   int PARM2 = iq2000bf_h_gr_get (current_cpu, 6);
index a2331a1e2fdf8af76678b9437b0991c8354870c5..3fe3bbf1ae4824701ea8c45f7df2b02fadcf9cfd 100644 (file)
@@ -59,7 +59,6 @@ SIM_DESC
 sim_open (SIM_OPEN_KIND kind, host_callback *callback, struct bfd *abfd,
          char * const *argv)
 {
-  char c;
   int i;
   SIM_DESC sd = sim_state_alloc (kind, callback);