From 229ddeb36ab0c41ead6d9e74089efda25d46d246 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 11 May 2025 19:26:38 -0700 Subject: [PATCH] maint: pacify GCC when selinux is missing * src/selinux.h (restorecon, defaultcon): Use MAYBE_UNUSED. --- src/selinux.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/selinux.h b/src/selinux.h index 813fa56089..9841d78cc1 100644 --- a/src/selinux.h +++ b/src/selinux.h @@ -41,13 +41,13 @@ defaultcon (struct selabel_handle *selabel_handle, # else static inline bool -restorecon (struct selabel_handle *selabel_handle, - char const *path, bool recurse) +restorecon (MAYBE_UNUSED struct selabel_handle *selabel_handle, + MAYBE_UNUSED char const *path, MAYBE_UNUSED bool recurse) { errno = ENOTSUP; return false; } static inline int -defaultcon (struct selabel_handle *selabel_handle, - char const *path, mode_t mode) +defaultcon (MAYBE_UNUSED struct selabel_handle *selabel_handle, + MAYBE_UNUSED char const *path, MAYBE_UNUSED mode_t mode) { errno = ENOTSUP; return -1; } # endif -- 2.47.3