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(
            ^~~~~~~~~~~
```
This commit is contained in:
Yu Watanabe 2017-12-05 14:04:12 +09:00
parent 4e066f7fed
commit 92b423b9b4
1 changed files with 2 additions and 0 deletions

View File

@ -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,