summaryrefslogtreecommitdiffstats
path: root/src/common/logging/backend.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/logging/backend.cpp')
-rw-r--r--src/common/logging/backend.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/common/logging/backend.cpp b/src/common/logging/backend.cpp
index d85e58373..92e8e742d 100644
--- a/src/common/logging/backend.cpp
+++ b/src/common/logging/backend.cpp
@@ -6,6 +6,7 @@
#include <array>
#include <cstdio>
+#include "common/assert.h"
#include "common/common_funcs.h" // snprintf compatibility define
#include "common/logging/backend.h"
#include "common/logging/filter.h"
@@ -65,8 +66,9 @@ const char* GetLogClassName(Class log_class) {
ALL_LOG_CLASSES()
#undef CLS
#undef SUB
+ case Class::Count:
+ UNREACHABLE();
}
- return "Unknown";
}
const char* GetLevelName(Level log_level) {
@@ -78,8 +80,9 @@ const char* GetLevelName(Level log_level) {
LVL(Warning);
LVL(Error);
LVL(Critical);
+ case Level::Count:
+ UNREACHABLE();
}
- return "Unknown";
#undef LVL
}