mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 09:21:26 +03:00
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:
parent
4e066f7fed
commit
92b423b9b4
@ -2146,6 +2146,7 @@ fail:
|
|||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if ENABLE_SMACK
|
||||||
static int setup_smack(
|
static int setup_smack(
|
||||||
const ExecContext *context,
|
const ExecContext *context,
|
||||||
const ExecCommand *command) {
|
const ExecCommand *command) {
|
||||||
@ -2176,6 +2177,7 @@ static int setup_smack(
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static int compile_bind_mounts(
|
static int compile_bind_mounts(
|
||||||
const ExecContext *context,
|
const ExecContext *context,
|
||||||
|
Loading…
Reference in New Issue
Block a user