public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] sim: ft32: 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=ab46df15a0ed2b7625036411d0286239cfa6e22c

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

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

Diff:
---
 sim/ft32/interp.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/sim/ft32/interp.c b/sim/ft32/interp.c
index e8f990d78b7..146c88a3bcd 100644
--- a/sim/ft32/interp.c
+++ b/sim/ft32/interp.c
@@ -702,12 +702,8 @@ sim_engine_run (SIM_DESC sd,
 		int nr_cpus,      /* ignore  */
 		int siggnal)      /* ignore  */
 {
-  sim_cpu *cpu;
-
   SIM_ASSERT (STATE_MAGIC (sd) == SIM_MAGIC_NUMBER);
 
-  cpu = STATE_CPU (sd, 0);
-
   while (1)
     {
       step_once (sd);

^ 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: ft32: 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).