diff options
| author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2015-02-20 18:52:45 +0100 | 
|---|---|---|
| committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2015-02-20 18:52:45 +0100 | 
| commit | 0544e23925edab56a765d67324325938fd4074fc (patch) | |
| tree | b77a422e3bec868d6d0f27f257a024a5f3f739eb | |
| parent | 409f14d9b5e47513d5c939120a33965997c8ceb2 (diff) | |
ldso: silence warning
symbol_addr was set but not used
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
| -rw-r--r-- | ldso/ldso/dl-debug.c | 11 | 
1 files changed, 3 insertions, 8 deletions
| diff --git a/ldso/ldso/dl-debug.c b/ldso/ldso/dl-debug.c index 1758bc387..88a48933c 100644 --- a/ldso/ldso/dl-debug.c +++ b/ldso/ldso/dl-debug.c @@ -112,8 +112,6 @@ _dl_debug_lookup (const char *undef_name, struct elf_resolve *undef_map,  					const ElfW(Sym) *ref, struct symbol_ref *value, int type_class)  {  #ifdef SHARED -  unsigned long symbol_addr; -    if (_dl_trace_prelink)      {        int conflict = 0; @@ -123,17 +121,14 @@ _dl_debug_lookup (const char *undef_name, struct elf_resolve *undef_map,  	   || _dl_trace_prelink_map == _dl_loaded_modules)  	  && undef_map != _dl_loaded_modules)  	{ -		symbol_addr = (unsigned long) -					  _dl_find_hash(undef_name, &undef_map->symbol_scope, -									undef_map, type_class, &val); +	  _dl_find_hash(undef_name, &undef_map->symbol_scope, +			undef_map, type_class, &val);  	  if (val.sym != value->sym || val.tpnt != value->tpnt)  	    conflict = 1;  	} -      if (value->sym -	  && (__builtin_expect (ELF_ST_TYPE(value->sym->st_info) -				== STT_TLS, 0))) +      if (unlikely(value->sym && ELF_ST_TYPE(value->sym->st_info) == STT_TLS))  	type_class = 4;        if (conflict | 
