summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2018-07-24 04:06:33 -0400
committerGravatar Lioncash2018-07-24 04:06:55 -0400
commit9d2cacdc9ecf19d7273599f78e3b444a1f217ef1 (patch)
treea37e31982e36b32dbab15c7cc291efe5cfa25f34 /src
parentMerge pull request #790 from bunnei/shader-print-instr (diff)
downloadyuzu-9d2cacdc9ecf19d7273599f78e3b444a1f217ef1.tar.gz
yuzu-9d2cacdc9ecf19d7273599f78e3b444a1f217ef1.tar.xz
yuzu-9d2cacdc9ecf19d7273599f78e3b444a1f217ef1.zip
wait_tree: Silence warning about all code paths not returning a value
If code execution hits this spot, something has gone very wrong, so mark the path as unreachable. This silences a warning on MSVC.
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/debugger/wait_tree.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/yuzu/debugger/wait_tree.cpp b/src/yuzu/debugger/wait_tree.cpp
index 8f24586ce..416cc1dfa 100644
--- a/src/yuzu/debugger/wait_tree.cpp
+++ b/src/yuzu/debugger/wait_tree.cpp
@@ -5,6 +5,7 @@
5#include "yuzu/debugger/wait_tree.h" 5#include "yuzu/debugger/wait_tree.h"
6#include "yuzu/util/util.h" 6#include "yuzu/util/util.h"
7 7
8#include "common/assert.h"
8#include "core/core.h" 9#include "core/core.h"
9#include "core/hle/kernel/event.h" 10#include "core/hle/kernel/event.h"
10#include "core/hle/kernel/handle_table.h" 11#include "core/hle/kernel/handle_table.h"
@@ -169,6 +170,8 @@ QString WaitTreeWaitObject::GetResetTypeQString(Kernel::ResetType reset_type) {
169 case Kernel::ResetType::Pulse: 170 case Kernel::ResetType::Pulse:
170 return tr("pulse"); 171 return tr("pulse");
171 } 172 }
173 UNREACHABLE();
174 return {};
172} 175}
173 176
174WaitTreeObjectList::WaitTreeObjectList( 177WaitTreeObjectList::WaitTreeObjectList(