summaryrefslogtreecommitdiff
path: root/ldso
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2013-08-28 11:15:21 +0300
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2013-11-06 22:21:59 +0100
commit54979ed77066235a6a189f5edffad9c833ef2af9 (patch)
tree123a24b16cf4dfef05b9b5932d4aa48d1b58182c /ldso
parentca609fafba59a3bccbfef64d8c1c522cd8fc4e2c (diff)
libdl: fix unused variable warning
The following warning introduced with commit 231e4a9b4 (libdl: fix dlopen implementation from statically linked application): ldso/libdl/libdl.c: In function 'do_dlopen': ldso/libdl/libdl.c:311:23: warning: unused variable 'ls' [-Wunused-variable] Cc: Filippo Arcidiacono <filippo.arcidiacono@st.com> Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'ldso')
-rw-r--r--ldso/libdl/libdl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ldso/libdl/libdl.c b/ldso/libdl/libdl.c
index ed4e735c6..388e3c703 100644
--- a/ldso/libdl/libdl.c
+++ b/ldso/libdl/libdl.c
@@ -308,7 +308,9 @@ static void *do_dlopen(const char *libname, int flag, ElfW(Addr) from)
struct elf_resolve **init_fini_list;
static bool _dl_init;
struct elf_resolve **local_scope;
+#ifdef SHARED
struct r_scope_elem *ls;
+#endif
#if defined(USE_TLS) && USE_TLS
bool any_tls = false;
#endif