From 30be149f87a2a3c5307bd490e864410dd49d8fae Mon Sep 17 00:00:00 2001 From: ReinUsesLisp Date: Fri, 15 Nov 2019 18:43:35 -0300 Subject: [PATCH] common/logging: Silence no return value warnings --- src/common/logging/backend.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/common/logging/backend.cpp b/src/common/logging/backend.cpp index ac692a128..3515d16aa 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) {