aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-rx.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2014-05-28 22:28:53 +0930
committerAlan Modra <amodra@gmail.com>2014-05-28 22:37:09 +0930
commitb48945626a707b7adfd6f66a65591d42630f54e7 (patch)
tree30a2a994bc7a2c790570c5c1eb7c5f105fe8fac4 /bfd/elf32-rx.c
parent4ba3b3268eaea2c15e7adb1b816a946af3a830bc (diff)
downloadgdb-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/elf32-rx.c')
-rw-r--r--bfd/elf32-rx.c4
1 files changed, 0 insertions, 4 deletions
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;