summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2022-03-22 17:21:30 +0000
committerSimon McVittie <smcv@collabora.com>2022-04-05 14:34:47 +0100
commitd4554fcf252657df854d4ad29a7f0041306bd5c2 (patch)
tree92ea133423edcf5bdcafa050a3d4eb5907e8745b
parent8f5b37069693594422dfaacdece0acd54dd9ecc7 (diff)
downloadbubblewrap-d4554fcf252657df854d4ad29a7f0041306bd5c2.tar.gz
utils: Silence -Wunused-parameter with clang, Meson, and SELinux disabled
These parameters are unused if SELinux happens to be disabled. Signed-off-by: Simon McVittie <smcv@collabora.com>
-rw-r--r--utils.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/utils.c b/utils.c
index 117da31..693273b 100644
--- a/utils.c
+++ b/utils.c
@@ -82,7 +82,7 @@ die (const char *format, ...)
}
void
-die_unless_label_valid (const char *label)
+die_unless_label_valid (UNUSED const char *label)
{
#ifdef HAVE_SELINUX
if (is_selinux_enabled () == 1)
@@ -854,7 +854,7 @@ pivot_root (const char * new_root, const char * put_old)
}
char *
-label_mount (const char *opt, const char *mount_label)
+label_mount (const char *opt, UNUSED const char *mount_label)
{
#ifdef HAVE_SELINUX
if (mount_label)
@@ -871,7 +871,7 @@ label_mount (const char *opt, const char *mount_label)
}
int
-label_create_file (const char *file_label)
+label_create_file (UNUSED const char *file_label)
{
#ifdef HAVE_SELINUX
if (is_selinux_enabled () > 0 && file_label)
@@ -881,7 +881,7 @@ label_create_file (const char *file_label)
}
int
-label_exec (const char *exec_label)
+label_exec (UNUSED const char *exec_label)
{
#ifdef HAVE_SELINUX
if (is_selinux_enabled () > 0 && exec_label)