public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] sim: m68hc11: fix -Wunused-but-set-variable warnings
@ 2023-12-08  5:31 Michael Frysinger
  0 siblings, 0 replies; only message in thread
From: Michael Frysinger @ 2023-12-08  5:31 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=fca8f1a3dc16518f98980242e3bc6e6c5288e367

commit fca8f1a3dc16518f98980242e3bc6e6c5288e367
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Wed Dec 6 20:07:44 2023 -0700

    sim: m68hc11: fix -Wunused-but-set-variable warnings

Diff:
---
 sim/m68hc11/dv-m68hc11.c    | 2 --
 sim/m68hc11/dv-m68hc11spi.c | 4 ----
 2 files changed, 6 deletions(-)

diff --git a/sim/m68hc11/dv-m68hc11.c b/sim/m68hc11/dv-m68hc11.c
index 7d7931b4bb2..ef18f099936 100644
--- a/sim/m68hc11/dv-m68hc11.c
+++ b/sim/m68hc11/dv-m68hc11.c
@@ -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");
diff --git a/sim/m68hc11/dv-m68hc11spi.c b/sim/m68hc11/dv-m68hc11spi.c
index 845db2ffa79..e552fd5de9a 100644
--- a/sim/m68hc11/dv-m68hc11spi.c
+++ b/sim/m68hc11/dv-m68hc11spi.c
@@ -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:

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-12-08  5:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-08  5:31 [binutils-gdb] sim: m68hc11: fix -Wunused-but-set-variable warnings Michael Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).