mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-12 09:17:44 +03:00
execute: get rid of gcc warning
This commit is contained in:
parent
70fcff314f
commit
b8d3418f7b
@ -1357,7 +1357,11 @@ int exec_command_set(ExecCommand *c, const char *path, ...) {
|
||||
}
|
||||
|
||||
const char* exit_status_to_string(ExitStatus status) {
|
||||
switch (status) {
|
||||
|
||||
/* We cast to int here, so that -Wenum doesn't complain that
|
||||
* EXIT_SUCCESS/EXIT_FAILURE aren't in the enum */
|
||||
|
||||
switch ((int) status) {
|
||||
|
||||
case EXIT_SUCCESS:
|
||||
return "SUCCESS";
|
||||
|
Loading…
Reference in New Issue
Block a user