summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArsen Arsenović <arsen@aarsen.me>2022-06-25 19:04:50 +0200
committerSam James <sam@gentoo.org>2022-07-12 07:33:20 +0100
commitbac6818bd82acea720a0a961c62321982ec381e7 (patch)
tree17d5ac4d3e7778e047aaa755b3561cfac2fd2b32
parentProbe the target system for needed headers (diff)
downloadpax-utils-bac6818bd82acea720a0a961c62321982ec381e7.tar.gz
pax-utils-bac6818bd82acea720a0a961c62321982ec381e7.tar.bz2
pax-utils-bac6818bd82acea720a0a961c62321982ec381e7.zip
security.h: suppress unused argument warning on allow_forking
Signed-off-by: Arsen Arsenović <arsen@aarsen.me> Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--security.c1
-rw-r--r--security.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/security.c b/security.c
index 4fecfa3..19bf78f 100644
--- a/security.c
+++ b/security.c
@@ -94,6 +94,7 @@ void security_init_pid(void)
void security_init(bool allow_forking)
{
+ (void) allow_forking;
int flags;
if (!ALLOW_PIDNS)
diff --git a/security.h b/security.h
index c93ec3e..65e1ad5 100644
--- a/security.h
+++ b/security.h
@@ -22,7 +22,7 @@ void security_init(bool allow_forking);
/* Disable forking; usable only when allow_forking above was true. */
void security_init_pid(void);
#else
-static inline void security_init(bool allow_forking) {}
+static inline void security_init(bool allow_forking) { (void) allow_forking; }
static inline void security_init_pid(void) {}
#endif