]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
sim: m68hc11: fix -Wunused-but-set-variable warnings
authorMike Frysinger <vapier@gentoo.org>
Thu, 7 Dec 2023 03:07:44 +0000 (20:07 -0700)
committerMike Frysinger <vapier@gentoo.org>
Fri, 8 Dec 2023 04:41:27 +0000 (21:41 -0700)
sim/m68hc11/dv-m68hc11.c
sim/m68hc11/dv-m68hc11spi.c

index 7d7931b4bb2a3dac8cbffddf4fda2b347e280c95..ef18f0999360e78aec7a61f0f027eac262d8a053 100644 (file)
@@ -589,13 +589,11 @@ m68hc11_info (struct hw *me)
   uint16_t base = 0;
   sim_cpu *cpu;
   struct m68hc11_sim_cpu *m68hc11_cpu;
-  struct m68hc11sio *controller;
   uint8_t val;
   
   sd = hw_system (me);
   cpu = STATE_CPU (sd, 0);
   m68hc11_cpu = M68HC11_SIM_CPU (cpu);
-  controller = hw_data (me);
 
   base = cpu_get_io_base (cpu);
   sim_io_printf (sd, "M68HC11:\n");
index 845db2ffa79325b29aff936d31877fb5aea7ef49..e552fd5de9a85a296a3722fe946172408692bb47 100644 (file)
@@ -157,14 +157,10 @@ m68hc11spi_port_event (struct hw *me,
                        int source_port,
                        int level)
 {
-  SIM_DESC sd;
   struct m68hc11spi *controller;
-  sim_cpu *cpu;
   uint8_t val;
   
   controller = hw_data (me);
-  sd         = hw_system (me);
-  cpu        = STATE_CPU (sd, 0);  
   switch (my_port)
     {
     case RESET_PORT: