From: Yu Watanabe Date: Tue, 5 Dec 2017 05:04:12 +0000 (+0900) Subject: execute: define setup_smack() only if SMACK is enabled X-Git-Tag: v236~68^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=92b423b9b4bef15da24814a81420629808f7e21e;p=thirdparty%2Fsystemd.git execute: define setup_smack() only if SMACK is enabled This suppresses the following warning ``` execute.c:2149:12: warning: ‘setup_smack’ defined but not used [-Wunused-function] static int setup_smack( ^~~~~~~~~~~ ``` --- diff --git a/src/core/execute.c b/src/core/execute.c index 59a8d60fe3e..904082eacda 100644 --- a/src/core/execute.c +++ b/src/core/execute.c @@ -2146,6 +2146,7 @@ fail: return r; } +#if ENABLE_SMACK static int setup_smack( const ExecContext *context, const ExecCommand *command) { @@ -2176,6 +2177,7 @@ static int setup_smack( return 0; } +#endif static int compile_bind_mounts( const ExecContext *context,