From 92b423b9b4bef15da24814a81420629808f7e21e Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Tue, 5 Dec 2017 14:04:12 +0900 Subject: [PATCH] execute: define setup_smack() only if SMACK is enabled MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This suppresses the following warning ``` execute.c:2149:12: warning: ‘setup_smack’ defined but not used [-Wunused-function] static int setup_smack( ^~~~~~~~~~~ ``` --- src/core/execute.c | 2 ++ 1 file changed, 2 insertions(+) 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,