From 9d2cacdc9ecf19d7273599f78e3b444a1f217ef1 Mon Sep 17 00:00:00 2001
From: Lioncash <mathew1800@gmail.com>
Date: Tue, 24 Jul 2018 04:06:33 -0400
Subject: [PATCH] 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.
---
 src/yuzu/debugger/wait_tree.cpp | 3 +++
 1 file changed, 3 insertions(+)

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(
-- 
GitLab