[PATCH 08/17] sim: ft32: fix -Wunused-but-set-variable warnings

Mike Frysinger vapier@gentoo.org
Thu Dec 7 03:59:28 GMT 2023


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

diff --git a/sim/ft32/interp.c b/sim/ft32/interp.c
index e8f990d78b74..146c88a3bcd5 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);
-- 
2.43.0



More information about the Gdb-patches mailing list