summaryrefslogtreecommitdiff
path: root/execute.c
diff options
context:
space:
mode:
Diffstat (limited to 'execute.c')
-rw-r--r--execute.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/execute.c b/execute.c
index 4e01e9ad69..5264b5009e 100644
--- a/execute.c
+++ b/execute.c
@@ -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";