diff options
| author | 2017-08-19 12:04:40 -0500 | |
|---|---|---|
| committer | 2017-08-21 08:34:28 -0500 | |
| commit | 65f19b51c43fbc35a1f1bfb81d773eaf6b5fffd3 (patch) | |
| tree | 2c70231243f2fb8dc71cd4d5b2746acd6646ed10 /src/core/hle/kernel | |
| parent | HLE/Applets: Fixed some conversion warnings when creating the framebuffer sha... (diff) | |
| download | yuzu-65f19b51c43fbc35a1f1bfb81d773eaf6b5fffd3.tar.gz yuzu-65f19b51c43fbc35a1f1bfb81d773eaf6b5fffd3.tar.xz yuzu-65f19b51c43fbc35a1f1bfb81d773eaf6b5fffd3.zip | |
Warnings: Add UNREACHABLE macros to switches that contemplate all possible values.
Diffstat (limited to 'src/core/hle/kernel')
| -rw-r--r-- | src/core/hle/kernel/kernel.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h index 9cf288b08..142bb84b2 100644 --- a/src/core/hle/kernel/kernel.h +++ b/src/core/hle/kernel/kernel.h | |||
| @@ -8,6 +8,7 @@ | |||
| 8 | #include <string> | 8 | #include <string> |
| 9 | #include <utility> | 9 | #include <utility> |
| 10 | #include <boost/smart_ptr/intrusive_ptr.hpp> | 10 | #include <boost/smart_ptr/intrusive_ptr.hpp> |
| 11 | #include "common/assert.h" | ||
| 11 | #include "common/common_types.h" | 12 | #include "common/common_types.h" |
| 12 | 13 | ||
| 13 | namespace Kernel { | 14 | namespace Kernel { |
| @@ -84,6 +85,8 @@ public: | |||
| 84 | case HandleType::ClientSession: | 85 | case HandleType::ClientSession: |
| 85 | return false; | 86 | return false; |
| 86 | } | 87 | } |
| 88 | |||
| 89 | UNREACHABLE(); | ||
| 87 | } | 90 | } |
| 88 | 91 | ||
| 89 | public: | 92 | public: |