From 76b1acf99dc76a5a921397c0dd49cfcfb1e8619e Mon Sep 17 00:00:00 2001 From: JohnHolmesII Date: Mon, 28 Dec 2020 17:05:35 -0800 Subject: [PATCH] Warnings: Ensure death functions are all marked noreturn --- Utilities/Thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utilities/Thread.cpp b/Utilities/Thread.cpp index 05864168df..8c536a06a6 100644 --- a/Utilities/Thread.cpp +++ b/Utilities/Thread.cpp @@ -2389,7 +2389,7 @@ u64 thread_base::get_cycles() } } -void thread_ctrl::emergency_exit(std::string_view reason) +[[noreturn]] void thread_ctrl::emergency_exit(std::string_view reason) { sig_log.fatal("Thread terminated due to fatal error: %s", reason);