diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-04-13 18:37:36 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-04-13 18:37:36 +0200 |
commit | b8d3418f7bc209427e27d76d3442987b6738cd1b (patch) | |
tree | 5932cada0e650e8193021ad6004914aff7e88761 /execute.c | |
parent | 70fcff314feff469a8e61dbe5017ed74f5e0a09d (diff) |
execute: get rid of gcc warning
Diffstat (limited to 'execute.c')
-rw-r--r-- | execute.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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"; |