[git commit prelink 1/1] ldso/include/dl-hash.h: suppress compiler warning. no code changes

Denys Vlasenko vda.linux at googlemail.com
Sun Nov 28 19:50:38 UTC 2010


commit: http://git.uclibc.org/uClibc/commit/?id=ffc5c7769dff075629e27a351b5c403e50a9f57d
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/prelink

The warning was repeated for every .c file which is including
this header:

./ldso/include/dl-hash.h: In function '_dl_find_hash':
./ldso/include/dl-hash.h:150: warning: unused parameter 'tpntp'

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 ldso/include/dl-hash.h |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/ldso/include/dl-hash.h b/ldso/include/dl-hash.h
index 34333f4..34bed1b 100644
--- a/ldso/include/dl-hash.h
+++ b/ldso/include/dl-hash.h
@@ -139,15 +139,15 @@ extern struct elf_resolve * _dl_add_elf_hash_table(const char * libname,
 
 /* Only need extra arg with some configurations */
 #if !((defined(USE_TLS) && USE_TLS) || defined __FDPIC__)
-# define _dl_lookup_hash(n, r, m, c, t) _dl_lookup_hash(n, r, m, c)
+# define _dl_lookup_hash(n, r, m, c, tpntp) _dl_lookup_hash(n, r, m, c)
+# define _dl_find_hash(n, r, m, t, tpntp) _dl_find_hash(n, r, m, t)
 #endif
 extern char *_dl_lookup_hash(const char *name, struct dyn_elf *rpnt,
-	struct elf_resolve *mytpnt, int type_class,
-	struct elf_resolve **tpntp);
-
+		struct elf_resolve *mytpnt, int type_class,
+		struct elf_resolve **tpntp);
 static __always_inline char *_dl_find_hash(const char *name, struct dyn_elf *rpnt,
-					struct elf_resolve *mytpnt, int type_class,
-					struct elf_resolve **tpntp)
+		struct elf_resolve *mytpnt, int type_class,
+		struct elf_resolve **tpntp)
 {
 	return _dl_lookup_hash(name, rpnt, mytpnt, type_class, tpntp);
 }
-- 
1.7.2.2



More information about the uClibc-cvs mailing list