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 1b43c12..087646b 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 a2331a1..3fe3bbf 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);