commit:     bac6818bd82acea720a0a961c62321982ec381e7
Author:     Arsen Arsenović <arsen <AT> aarsen <DOT> me>
AuthorDate: Sat Jun 25 17:04:50 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Jul 12 06:33:20 2022 +0000
URL:        https://gitweb.gentoo.org/proj/pax-utils.git/commit/?id=bac6818b

security.h: suppress unused argument warning on allow_forking

Signed-off-by: Arsen Arsenović <arsen <AT> aarsen.me>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 security.c | 1 +
 security.h | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

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
 

Reply via email to