commit:     061efe12b5e1f15341b30088588513e1855eab77
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 15 04:02:34 2016 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Tue Nov 15 04:02:34 2016 +0000
URL:        https://gitweb.gentoo.org/proj/pax-utils.git/commit/?id=061efe12

paxldso: fix unused arg warnings when support is disabled

 paxldso.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/paxldso.h b/paxldso.h
index 1517e5e..16cbbac 100644
--- a/paxldso.h
+++ b/paxldso.h
@@ -26,7 +26,7 @@
 #if PAX_LDSO_CACHE
 extern char *ldso_cache_lookup_lib(elfobj *elf, const char *fname);
 #else
-static inline char *ldso_cache_lookup_lib(elfobj *elf, const char *fname)
+static inline char *ldso_cache_lookup_lib(__unused__ elfobj *elf, __unused__ 
const char *fname)
 {
        return NULL;
 }
@@ -54,7 +54,7 @@ extern array_t *ldpaths;
 #if PAX_LDSO_CONFIG
 extern int ldso_config_load(const char *fname);
 #else
-static inline int ldso_config_load(const char *fname)
+static inline int ldso_config_load(__unused__ const char *fname)
 {
        return 0;
 }

Reply via email to