diff options
author | Benjamin Barenblat <bbaren@mit.edu> | 2015-08-02 18:30:24 -0400 |
---|---|---|
committer | Benjamin Barenblat <bbaren@mit.edu> | 2015-08-02 18:30:24 -0400 |
commit | 0298b7bedd17f88430486dd502fb7923b1d10f26 (patch) | |
tree | e56edb5024da1c03b2021c428988f8a710417565 /src/common/logging/backend.cpp | |
parent | 9ff23da2550dd159d81933c0236529ececc526b5 (diff) |
Use UNREACHABLE macro for impossible cases in previous commit
Use the UNREACHABLE macro instead of `ASSERT(false, ...);`.
Diffstat (limited to 'src/common/logging/backend.cpp')
-rw-r--r-- | src/common/logging/backend.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/logging/backend.cpp b/src/common/logging/backend.cpp index 68580e1c06..0a081e7d47 100644 --- a/src/common/logging/backend.cpp +++ b/src/common/logging/backend.cpp @@ -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 } |