diff options
| author | 2022-06-14 08:34:16 -0400 | |
|---|---|---|
| committer | 2022-06-14 08:34:16 -0400 | |
| commit | a3b12e3809e388e9c9b0608b14d85c0985e412c3 (patch) | |
| tree | 135226fe24596286c54bf9c5c4a12868c3c55e90 /src/common/assert.cpp | |
| parent | Merge pull request #8459 from Morph1984/wextra-gcc (diff) | |
| parent | kernel: fix passthrough of local captures in lambda (diff) | |
| download | yuzu-a3b12e3809e388e9c9b0608b14d85c0985e412c3.tar.gz yuzu-a3b12e3809e388e9c9b0608b14d85c0985e412c3.tar.xz yuzu-a3b12e3809e388e9c9b0608b14d85c0985e412c3.zip | |
Merge pull request #8439 from liamwhite/monkey-compiler
general: fix compilation on GCC 12
Diffstat (limited to 'src/common/assert.cpp')
| -rw-r--r-- | src/common/assert.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/common/assert.cpp b/src/common/assert.cpp index b44570528..6026b7dc2 100644 --- a/src/common/assert.cpp +++ b/src/common/assert.cpp | |||
| @@ -6,8 +6,13 @@ | |||
| 6 | 6 | ||
| 7 | #include "common/settings.h" | 7 | #include "common/settings.h" |
| 8 | 8 | ||
| 9 | void assert_handle_failure() { | 9 | void assert_fail_impl() { |
| 10 | if (Settings::values.use_debug_asserts) { | 10 | if (Settings::values.use_debug_asserts) { |
| 11 | Crash(); | 11 | Crash(); |
| 12 | } | 12 | } |
| 13 | } | 13 | } |
| 14 | |||
| 15 | [[noreturn]] void unreachable_impl() { | ||
| 16 | Crash(); | ||
| 17 | throw std::runtime_error("Unreachable code"); | ||
| 18 | } | ||