}
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";