summaryrefslogtreecommitdiff
path: root/src/common/logging/backend.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2015-08-05 11:59:06 -0400
committerGravatar bunnei2015-08-05 11:59:06 -0400
commitb6c241d667dd6a22b1dadaf9c2d6ddaac2e93de5 (patch)
tree509244f0525c8b1a304134d7c33a631cec0f95d3 /src/common/logging/backend.cpp
parentMerge pull request #1015 from yuriks/vertex-caching (diff)
parentUse UNREACHABLE macro for impossible cases in previous commit (diff)
downloadyuzu-b6c241d667dd6a22b1dadaf9c2d6ddaac2e93de5.tar.gz
yuzu-b6c241d667dd6a22b1dadaf9c2d6ddaac2e93de5.tar.xz
yuzu-b6c241d667dd6a22b1dadaf9c2d6ddaac2e93de5.zip
Merge pull request #1018 from bbarenblat/master
Handle invalid `Log::Level::Count`
Diffstat (limited to 'src/common/logging/backend.cpp')
-rw-r--r--src/common/logging/backend.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/logging/backend.cpp b/src/common/logging/backend.cpp
index d85e58373..0a081e7d4 100644
--- a/src/common/logging/backend.cpp
+++ b/src/common/logging/backend.cpp
@@ -6,6 +6,7 @@
6#include <array> 6#include <array>
7#include <cstdio> 7#include <cstdio>
8 8
9#include "common/assert.h"
9#include "common/common_funcs.h" // snprintf compatibility define 10#include "common/common_funcs.h" // snprintf compatibility define
10#include "common/logging/backend.h" 11#include "common/logging/backend.h"
11#include "common/logging/filter.h" 12#include "common/logging/filter.h"
@@ -78,8 +79,9 @@ const char* GetLevelName(Level log_level) {
78 LVL(Warning); 79 LVL(Warning);
79 LVL(Error); 80 LVL(Error);
80 LVL(Critical); 81 LVL(Critical);
82 case Level::Count:
83 UNREACHABLE();
81 } 84 }
82 return "Unknown";
83#undef LVL 85#undef LVL
84} 86}
85 87