From b48945626a707b7adfd6f66a65591d42630f54e7 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 28 May 2014 22:28:53 +0930 Subject: [PATCH] Fix rx "set but not used" warnings * elf32-rx.c (rx_table_map): Delete set but not used variables. --- bfd/ChangeLog | 28 ++++++++++++++++------------ bfd/elf32-rx.c | 4 ---- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index eb5c196..8c93f39 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2014-05-28 Alan Modra + + * elf32-rx.c (rx_table_map): Delete set but not used variables. + 2014-05-28 Tristan Gingold * dwarf2.c (lookup_address_in_function_table): Add best_fit_len @@ -47,7 +51,7 @@ 2014-05-16 Ryan Mansfield - * 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 @@ -599,14 +603,14 @@ when num == 0. 2014-03-27 Yury Gribov - Pavel Fedin + Pavel Fedin - * 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 @@ -672,10 +676,10 @@ 2014-03-14 Meador Inge - * 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 @@ -876,8 +880,8 @@ 2014-02-18 Jack Carter - * 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 diff --git a/bfd/elf32-rx.c b/bfd/elf32-rx.c index e1856a9..469ba48 100644 --- a/bfd/elf32-rx.c +++ b/bfd/elf32-rx.c @@ -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; -- 2.7.4