From 3762437eadd40d48f4d594f31a3c11106a5ae3a1 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 6 Dec 2023 21:05:51 -0700 Subject: sim: common: fix -Wunused-but-set-variable warnings --- sim/common/hw-base.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'sim') diff --git a/sim/common/hw-base.c b/sim/common/hw-base.c index dc94461..c142806 100644 --- a/sim/common/hw-base.c +++ b/sim/common/hw-base.c @@ -526,7 +526,6 @@ do_hw_attach_regs (struct hw *hw) NULL }; const char **reg_property_name; - int nr_valid_reg_properties = 0; for (reg_property_name = reg_property_names; *reg_property_name != NULL; reg_property_name++) @@ -557,7 +556,6 @@ do_hw_attach_regs (struct hw *hw) 0, attach_space, attach_address, attach_size, hw); - nr_valid_reg_properties++; } /* if first option matches don't try for any others */ if (reg_property_name == reg_property_names) -- cgit v1.1