diff options
author | Mike Frysinger <vapier@gentoo.org> | 2023-12-06 21:05:51 -0700 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2023-12-07 22:31:21 -0700 |
commit | 3762437eadd40d48f4d594f31a3c11106a5ae3a1 (patch) | |
tree | 33d03ebcef01e4ecdcd999b6fd60e8f8ed5dfd9d /sim/common | |
parent | 8958a9171486db6d4f14ff3de0165950cf24c2a1 (diff) | |
download | gdb-3762437eadd40d48f4d594f31a3c11106a5ae3a1.zip gdb-3762437eadd40d48f4d594f31a3c11106a5ae3a1.tar.gz gdb-3762437eadd40d48f4d594f31a3c11106a5ae3a1.tar.bz2 |
sim: common: fix -Wunused-but-set-variable warnings
Diffstat (limited to 'sim/common')
-rw-r--r-- | sim/common/hw-base.c | 2 |
1 files changed, 0 insertions, 2 deletions
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) |