diff --git a/src/common/logging/backend.cpp b/src/common/logging/backend.cpp index ac692a128d..3515d16aa4 100644 --- a/src/common/logging/backend.cpp +++ b/src/common/logging/backend.cpp @@ -253,8 +253,10 @@ const char* GetLogClassName(Class log_class) { #undef CLS #undef SUB case Class::Count: - UNREACHABLE(); + break; } + UNREACHABLE(); + return "Invalid"; } const char* GetLevelName(Level log_level) { @@ -269,9 +271,11 @@ const char* GetLevelName(Level log_level) { LVL(Error); LVL(Critical); case Level::Count: - UNREACHABLE(); + break; } #undef LVL + UNREACHABLE(); + return "Invalid"; } void SetGlobalFilter(const Filter& filter) {