Fix rx "set but not used" warnings
authorAlan Modra <amodra@gmail.com>
Wed, 28 May 2014 12:58:53 +0000 (22:28 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 28 May 2014 13:07:09 +0000 (22:37 +0930)
* elf32-rx.c (rx_table_map): Delete set but not used variables.

bfd/ChangeLog
bfd/elf32-rx.c

index eb5c196..8c93f39 100644 (file)
@@ -1,3 +1,7 @@
+2014-05-28  Alan Modra  <amodra@gmail.com>
+
+       * elf32-rx.c (rx_table_map): Delete set but not used variables.
+
 2014-05-28  Tristan Gingold  <gingold@adacore.com>
 
        * dwarf2.c (lookup_address_in_function_table): Add best_fit_len
@@ -47,7 +51,7 @@
 
 2014-05-16  Ryan Mansfield  <rmansfield@qnx.com>
 
-        * config.bfd: Move QNX target_cflags from arm-*-netbsd* to arm-*-nto*.
+       * config.bfd: Move QNX target_cflags from arm-*-netbsd* to arm-*-nto*.
 
 2014-05-16  Jon Turney  <jon.turney@dronecode.org.uk>
 
        when num == 0.
 
 2014-03-27  Yury Gribov  <y.gribov@samsung.com>
-           Pavel Fedin  <p.fedin@samsung.com>
+           Pavel Fedin  <p.fedin@samsung.com>
 
-       * elf32-arm.c: Add support for limited pretty-printing of PLT
+       * elf32-arm.c: Add support for limited pretty-printing of PLT
        entries on eabi and nacl targets.
        (elf32_arm_get_synthetic_symtab): Add new callback.
-       (elf32_arm_nacl_plt_sym_val): Likewise.
-       (elf32_arm_plt0_size): Add helper function.
-       (elf32_arm_plt_size): Likewise.
+       (elf32_arm_nacl_plt_sym_val): Likewise.
+       (elf32_arm_plt0_size): Add helper function.
+       (elf32_arm_plt_size): Likewise.
 
 2014-03-27  Tristan Gingold  <gingold@adacore.com>
 
 
 2014-03-14  Meador Inge  <meadori@codesourcery.com>
 
-        * configure.in: Add strnlen to AC_CHECK_DECLS.
-        * config.in: Regenerate.
-         * configure: Regenerate.
-        * sysdep.h (strnlen): Add prototype.
+       * configure.in: Add strnlen to AC_CHECK_DECLS.
+       * config.in: Regenerate.
+       * configure: Regenerate.
+       * sysdep.h (strnlen): Add prototype.
 
 2014-03-14  Alan Modra  <amodra@gmail.com>
 
 
 2014-02-18  Jack Carter  <jack.carter@imgtec.com>
 
-        * elfxx-mips.c(_bfd_mips_elf_modify_segment_map): Deleted hard coding of
-        PT_DYNAMIC segment flags.
+       * elfxx-mips.c(_bfd_mips_elf_modify_segment_map): Deleted hard coding of
+       PT_DYNAMIC segment flags.
 
 2014-02-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
index e1856a9..469ba48 100644 (file)
@@ -3801,8 +3801,6 @@ rx_table_map (struct bfd_hash_entry *vent, void *vinfo)
   RX_Table_Info *info = (RX_Table_Info *)vinfo;
   struct bfd_link_hash_entry *ent = (struct bfd_link_hash_entry *)vent;
   const char *name; /* of the symbol we've found */
-  asection *sec;
-  struct bfd *abfd;
   int idx;
   const char *tname; /* name of the table */
   bfd_vma start_addr, end_addr;
@@ -3817,8 +3815,6 @@ rx_table_map (struct bfd_hash_entry *vent, void *vinfo)
     return TRUE;
 
   name = ent->root.string;
-  sec = ent->u.def.section;
-  abfd = sec->owner;
 
   if (strncmp (name, "$tablestart$", 12))
     return TRUE;