[git commit] ldso: x86_64: delete unused variable

Mike Frysinger vapier at gentoo.org
Sat Oct 1 19:12:16 UTC 2011


commit: http://git.uclibc.org/uClibc/commit/?id=d174d2c46591b15bd875ee2f7e46a594eaf9eccb
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master

gcc informed me:
In file included from ldso/ldso/ldso.c:46:0:
ldso/ldso/x86_64/elfinterp.c: In function '_dl_do_lazy_reloc':
ldso/ldso/x86_64/elfinterp.c:294:6: warning:
	variable 'symtab_index' set but not used [-Wunused-but-set-variable]

Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
 ldso/ldso/x86_64/elfinterp.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/ldso/ldso/x86_64/elfinterp.c b/ldso/ldso/x86_64/elfinterp.c
index c099fd6..d8b38d3 100644
--- a/ldso/ldso/x86_64/elfinterp.c
+++ b/ldso/ldso/x86_64/elfinterp.c
@@ -291,14 +291,12 @@ _dl_do_lazy_reloc(struct elf_resolve *tpnt, struct r_scope_elem *scope,
 		  ELF_RELOC *rpnt, ElfW(Sym) *symtab, char *strtab)
 {
 	int reloc_type;
-	int symtab_index;
 	ElfW(Addr) *reloc_addr;
 #if defined (__SUPPORT_LD_DEBUG__)
 	ElfW(Addr) old_val;
 #endif
 
 	(void)scope;
-	symtab_index = ELF_R_SYM(rpnt->r_info);
 	(void)strtab;
 
 	reloc_addr = (ElfW(Addr)*)(tpnt->loadaddr + rpnt->r_offset);


More information about the uClibc-cvs mailing list