]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
sim: common: fix -Wunused-but-set-variable warnings
authorMike Frysinger <vapier@gentoo.org>
Thu, 7 Dec 2023 04:05:51 +0000 (21:05 -0700)
committerMike Frysinger <vapier@gentoo.org>
Fri, 8 Dec 2023 05:31:21 +0000 (22:31 -0700)
sim/common/hw-base.c

index dc94461068668af7975aa7a310a4bcb017afbd79..c142806092bfda58a36e9ad2055878e2e57b4190 100644 (file)
@@ -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)