diff options
author | Alan Modra <amodra@gmail.com> | 2014-05-28 22:28:53 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2014-05-28 22:37:09 +0930 |
commit | b48945626a707b7adfd6f66a65591d42630f54e7 (patch) | |
tree | 30a2a994bc7a2c790570c5c1eb7c5f105fe8fac4 /bfd | |
parent | 4ba3b3268eaea2c15e7adb1b816a946af3a830bc (diff) | |
download | gdb-b48945626a707b7adfd6f66a65591d42630f54e7.zip gdb-b48945626a707b7adfd6f66a65591d42630f54e7.tar.gz gdb-b48945626a707b7adfd6f66a65591d42630f54e7.tar.bz2 |
Fix rx "set but not used" warnings
* elf32-rx.c (rx_table_map): Delete set but not used variables.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 28 | ||||
-rw-r--r-- | 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 <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> @@ -599,14 +603,14 @@ 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> @@ -672,10 +676,10 @@ 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> @@ -876,8 +880,8 @@ 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> 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; |