aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2023-12-06 21:05:51 -0700
committerMike Frysinger <vapier@gentoo.org>2023-12-07 22:31:21 -0700
commit3762437eadd40d48f4d594f31a3c11106a5ae3a1 (patch)
tree33d03ebcef01e4ecdcd999b6fd60e8f8ed5dfd9d /sim
parent8958a9171486db6d4f14ff3de0165950cf24c2a1 (diff)
downloadfsf-binutils-gdb-3762437eadd40d48f4d594f31a3c11106a5ae3a1.zip
fsf-binutils-gdb-3762437eadd40d48f4d594f31a3c11106a5ae3a1.tar.gz
fsf-binutils-gdb-3762437eadd40d48f4d594f31a3c11106a5ae3a1.tar.bz2
sim: common: fix -Wunused-but-set-variable warnings
Diffstat (limited to 'sim')
-rw-r--r--sim/common/hw-base.c2
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)