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

Message ID 20231207035937.14920-8-vapier@gentoo.org
State New
Headers
Series [01/17] sim: arm: fix -Wunused-but-set-variable warnings |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 fail Patch failed to apply
linaro-tcwg-bot/tcwg_gdb_build--master-arm fail Patch failed to apply

Commit Message

Mike Frysinger Dec. 7, 2023, 3:59 a.m. UTC
  ---
 sim/ft32/interp.c | 4 ----
 1 file changed, 4 deletions(-)
  

Patch

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);