[git commit] libdl: fix unused variable warning
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Wed Nov 6 21:21:59 UTC 2013
commit: http://git.uclibc.org/uClibc/commit/?id=54979ed77066235a6a189f5edffad9c833ef2af9
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master
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 at st.com>
Signed-off-by: Baruch Siach <baruch at tkos.co.il>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
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 ed4e735..388e3c7 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
More information about the uClibc-cvs
mailing list