public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [obv] elf32-tic6x.c build regression fix
@ 2011-03-31 14:23 Jan Kratochvil
  0 siblings, 0 replies; only message in thread
From: Jan Kratochvil @ 2011-03-31 14:23 UTC (permalink / raw)
  To: binutils; +Cc: Bernd Schmidt

Hi Bernd,

checked in as obvious, it seems to me it is really not used, please fix it up
appropriately otherwise.

Fedora 15 x86_64 gcc-4.6.0-0.15.fc15.x86_64
elf32-tic6x.c:2057:8: error: variable ‘dynobj’ set but not used [-Werror=unused-but-set-variable]


Thanks,
Jan


http://sourceware.org/ml/binutils-cvs/2011-03/msg00211.html

--- src/bfd/ChangeLog	2011/03/31 14:15:30	1.5287
+++ src/bfd/ChangeLog	2011/03/31 14:17:34	1.5288
@@ -1,3 +1,8 @@
+2011-03-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+	* elf32-tic6x.c (elf32_tic6x_relocate_section): Remove unused variable
+	dynobj and its initialization.
+
 2011-03-31  Tristan Gingold  <gingold@adacore.com>
 
 	* makefile.vms (DEFS): Add HAVE_bfd_elf64_ia64_vms_vec.
--- src/bfd/elf32-tic6x.c	2011/03/31 08:58:20	1.14
+++ src/bfd/elf32-tic6x.c	2011/03/31 14:17:34	1.15
@@ -2054,7 +2054,6 @@
 			      Elf_Internal_Sym *local_syms,
 			      asection **local_sections)
 {
-  bfd *dynobj;
   struct elf32_tic6x_link_hash_table *htab;
   Elf_Internal_Shdr *symtab_hdr;
   struct elf_link_hash_entry **sym_hashes;
@@ -2064,7 +2063,6 @@
   bfd_boolean ok = TRUE;
 
   htab = elf32_tic6x_hash_table (info);
-  dynobj = elf_hash_table (info)->dynobj;
   symtab_hdr = & elf_symtab_hdr (input_bfd);
   sym_hashes = elf_sym_hashes (input_bfd);
   local_got_offsets = elf_local_got_offsets (input_bfd);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-03-31 14:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-31 14:23 [obv] elf32-tic6x.c build regression fix Jan Kratochvil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).