diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2010-11-24 22:33:01 +0100 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2010-11-24 22:33:01 +0100 |
commit | 23fa805150d573a913cad69d34c06f3b2ce54270 (patch) | |
tree | 50236c0ad035032304397d021792ae07bf21777c | |
parent | d58d8413ca908febbdeba92231bd17dc1dccbe04 (diff) |
ldso: silence warning about unused tls var if !tls
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
-rw-r--r-- | ldso/libdl/libdl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ldso/libdl/libdl.c b/ldso/libdl/libdl.c index 3957e846f..028b9ad05 100644 --- a/ldso/libdl/libdl.c +++ b/ldso/libdl/libdl.c @@ -612,7 +612,9 @@ void *dlsym(void *vhandle, const char *name) ElfW(Addr) from; struct dyn_elf *rpnt; void *ret; +#if defined(USE_TLS) && USE_TLS && defined SHARED struct elf_resolve *tls_tpnt = NULL; +#endif /* Nastiness to support underscore prefixes. */ #ifdef __UCLIBC_UNDERSCORES__ char tmp_buf[80]; |