diff options
author | Alan Modra <amodra@bigpond.net.au> | 2010-06-27 04:07:50 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2010-06-27 04:07:50 +0000 |
commit | 1995df0090ab0d2d6567c32ecd7665d320e55af5 (patch) | |
tree | b83b202dd37eae31c719df5fb29f1f96970c0f9a /bfd/elf32-bfin.c | |
parent | 7b2094d39f8b2651b4a056bd5d5872ae9406f329 (diff) | |
download | binutils-redhat-1995df0090ab0d2d6567c32ecd7665d320e55af5.tar.gz |
fix set but unused variable warnings
Diffstat (limited to 'bfd/elf32-bfin.c')
-rw-r--r-- | bfd/elf32-bfin.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/bfd/elf32-bfin.c b/bfd/elf32-bfin.c index d208f353c5..e8cdf22d86 100644 --- a/bfd/elf32-bfin.c +++ b/bfd/elf32-bfin.c @@ -3379,7 +3379,6 @@ _bfin_create_got_section (bfd *abfd, struct bfd_link_info *info) struct elf_link_hash_entry *h; const struct elf_backend_data *bed = get_elf_backend_data (abfd); int ptralign; - int offset; /* This function may be called more than once. */ s = bfd_get_section_by_name (abfd, ".got"); @@ -3457,12 +3456,10 @@ _bfin_create_got_section (bfd *abfd, struct bfd_link_info *info) return FALSE; bfinfdpic_gotfixup_section (info) = s; - offset = -2048; flags = BSF_GLOBAL; } else { - offset = 2048; flags = BSF_GLOBAL | BSF_WEAK; } @@ -5107,11 +5104,12 @@ elf32_bfin_merge_private_bfd_data (bfd *ibfd, bfd *obfd) if (new_flags & EF_BFIN_FDPIC) new_flags &= ~EF_BFIN_PIC; -#ifdef DEBUG +#ifndef DEBUG + if (0) +#endif (*_bfd_error_handler) ("old_flags = 0x%.8lx, new_flags = 0x%.8lx, init = %s, filename = %s", old_flags, new_flags, elf_flags_init (obfd) ? "yes" : "no", bfd_get_filename (ibfd)); -#endif if (!elf_flags_init (obfd)) /* First call, no flags set. */ { |