From: Mike Frysinger Date: Thu, 7 Dec 2023 04:05:51 +0000 (-0700) Subject: sim: common: fix -Wunused-but-set-variable warnings X-Git-Tag: binutils-2_42~662 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3762437eadd40d48f4d594f31a3c11106a5ae3a1;p=thirdparty%2Fbinutils-gdb.git sim: common: fix -Wunused-but-set-variable warnings --- diff --git a/sim/common/hw-base.c b/sim/common/hw-base.c index dc944610686..c142806092b 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)