mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
maint: pacify GCC when selinux is missing
* src/selinux.h (restorecon, defaultcon): Use MAYBE_UNUSED.
This commit is contained in:
1 parent
5e35f0e770
commit
229ddeb36a
1 file changed
+4
-4
+4
-4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user