aboutsummaryrefslogtreecommitdiff
path: root/src/yuzu/debugger/wait_tree.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-07-24 04:06:33 -0400
committerLioncash <mathew1800@gmail.com>2018-07-24 04:06:55 -0400
commit8bfaf576fb13ec8b03844ff26539c31a2390eb73 (patch)
treea37e31982e36b32dbab15c7cc291efe5cfa25f34 /src/yuzu/debugger/wait_tree.cpp
parent236789a321bb8808b73b2cc7e53461e4f1f16f42 (diff)
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/yuzu/debugger/wait_tree.cpp')
-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 8f24586cef..416cc1dfab 100644
--- a/src/yuzu/debugger/wait_tree.cpp
+++ b/src/yuzu/debugger/wait_tree.cpp
@@ -5,6 +5,7 @@
#include "yuzu/debugger/wait_tree.h"
#include "yuzu/util/util.h"
+#include "common/assert.h"
#include "core/core.h"
#include "core/hle/kernel/event.h"
#include "core/hle/kernel/handle_table.h"
@@ -169,6 +170,8 @@ QString WaitTreeWaitObject::GetResetTypeQString(Kernel::ResetType reset_type) {
case Kernel::ResetType::Pulse:
return tr("pulse");
}
+ UNREACHABLE();
+ return {};
}
WaitTreeObjectList::WaitTreeObjectList(