Skip to content
Snippets Groups Projects
Unverified Commit 7cd5a653 authored by Benjamin Barenblat's avatar Benjamin Barenblat
Browse files

Handle invalid `Log::Class`

Add a case of `Log::Class::Count` to the switch statement that
dispatches on `Log::Class`.  The case simply calls the `UNREACHABLE`
macro.
parent cebf2455
No related branches found
No related tags found
No related merge requests found
...@@ -66,8 +66,9 @@ const char* GetLogClassName(Class log_class) { ...@@ -66,8 +66,9 @@ const char* GetLogClassName(Class log_class) {
ALL_LOG_CLASSES() ALL_LOG_CLASSES()
#undef CLS #undef CLS
#undef SUB #undef SUB
case Class::Count:
UNREACHABLE();
} }
return "Unknown";
} }
const char* GetLevelName(Level log_level) { const char* GetLevelName(Level log_level) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment