Use UNREACHABLE macro for impossible cases in previous commit
Use the UNREACHABLE macro instead of `ASSERT(false, ...);`.
This commit is contained in:
parent
067d2e7e2b
commit
2a886560e8
2 changed files with 3 additions and 4 deletions
|
@ -80,8 +80,7 @@ const char* GetLevelName(Level log_level) {
|
|||
LVL(Error);
|
||||
LVL(Critical);
|
||||
case Level::Count:
|
||||
ASSERT_MSG(false, "invalid log level");
|
||||
return "Unknown";
|
||||
UNREACHABLE();
|
||||
}
|
||||
#undef LVL
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue