aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-11-14 23:02:34 -0500
committerMike Frysinger <vapier@gentoo.org>2016-11-14 23:02:34 -0500
commit061efe12b5e1f15341b30088588513e1855eab77 (patch)
tree19bbaa231b71a66a5834d63f2c5f109c90c35d81
parentpaxldso: always expose ldpaths array (diff)
downloadpax-utils-061efe12.tar.gz
pax-utils-061efe12.tar.bz2
pax-utils-061efe12.zip
paxldso: fix unused arg warnings when support is disabled
-rw-r--r--paxldso.h4
1 files 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;
}