1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-08-04 07:43:58 +02:00

maint: pacify GCC when selinux is missing

* src/selinux.h (restorecon, defaultcon): Use MAYBE_UNUSED.
This commit is contained in:
Paul Eggert
2025-05-11 19:26:38 -07:00
parent 5e35f0e770
commit 229ddeb36a
+4 -4
View File
@@ -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