summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-11-18 02:29:51 +0100
committerGitHub <noreply@github.com>2019-11-18 02:29:51 +0100
commit60993513af8e4436d7630eb3edda03ace4abc935 (patch)
tree6b419f077f874919baaaf91019ca25ebf225db26
parentMerge pull request #3126 from yuzu-emu/revert-3106-bitfield (diff)
parentcommon/logging: Silence no return value warnings (diff)
downloadyuzu-60993513af8e4436d7630eb3edda03ace4abc935.tar
yuzu-60993513af8e4436d7630eb3edda03ace4abc935.tar.gz
yuzu-60993513af8e4436d7630eb3edda03ace4abc935.tar.bz2
yuzu-60993513af8e4436d7630eb3edda03ace4abc935.tar.lz
yuzu-60993513af8e4436d7630eb3edda03ace4abc935.tar.xz
yuzu-60993513af8e4436d7630eb3edda03ace4abc935.tar.zst
yuzu-60993513af8e4436d7630eb3edda03ace4abc935.zip
-rw-r--r--src/common/logging/backend.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/common/logging/backend.cpp b/src/common/logging/backend.cpp
index 1111cfbad..8f2591d53 100644
--- a/src/common/logging/backend.cpp
+++ b/src/common/logging/backend.cpp
@@ -272,8 +272,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) {
@@ -288,9 +290,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) {