Add a final return to RestartReason.
This silences the warning:
INFO: From Compiling src/main/cpp/blaze.cc:
src/main/cpp/blaze.cc: In function 'const char* blaze::ReasonString(blaze::RestartReason)':
src/main/cpp/blaze.cc:191:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
@@ -188,6 +188,9 @@ static const char* ReasonString(RestartReason reason) {
case SERVER_UNRESPONSIVE:
return "server_unresponsive";
}
+
+ BAZEL_DIE(blaze_exit_code::INTERNAL_ERROR)
+ << "unknown RestartReason (" << reason << ").";
}
// Encapsulates miscellaneous information reported to the server for logging and
