From: 0xAX <0xAX@users.noreply.github.com> Date: Fri, 12 Jan 2018 23:48:53 +0000 (+0100) Subject: dbus-execute: define bus_set_transient_errno() only if HAVE_SECCOMP (#7869) X-Git-Tag: v237~110 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aad67b80c5e99f173b5b37f0437bd51c1117e1ab;p=thirdparty%2Fsystemd.git dbus-execute: define bus_set_transient_errno() only if HAVE_SECCOMP (#7869) in other way we will get a warning during build: ../src/core/dbus-util.h:55:13: warning: ‘bus_set_transient_errno’ defined but not used [-Wunused-function] int bus_set_transient_##function( --- diff --git a/src/core/dbus-execute.c b/src/core/dbus-execute.c index 352852a75ed..628fdcd1e5b 100644 --- a/src/core/dbus-execute.c +++ b/src/core/dbus-execute.c @@ -1174,7 +1174,9 @@ static const char* mount_propagation_flags_to_string_with_check(unsigned long n) static BUS_DEFINE_SET_TRANSIENT(nsec, "t", uint64_t, nsec_t, NSEC_FMT); static BUS_DEFINE_SET_TRANSIENT_IS_VALID(log_level, "i", int32_t, int, "%" PRIi32, log_level_is_valid); +#if HAVE_SECCOMP static BUS_DEFINE_SET_TRANSIENT_IS_VALID(errno, "i", int32_t, int, "%" PRIi32, errno_is_valid); +#endif static BUS_DEFINE_SET_TRANSIENT_IS_VALID(sched_priority, "i", int32_t, int, "%" PRIi32, sched_priority_is_valid); static BUS_DEFINE_SET_TRANSIENT_IS_VALID(nice, "i", int32_t, int, "%" PRIi32, nice_is_valid); static BUS_DEFINE_SET_TRANSIENT_PARSE(std_input, ExecInput, exec_input_from_string);