From 032bcc92fb4f1232fbf6f0821afd2be5e51c68bb Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Wed, 2 Oct 2024 11:57:30 -0400 Subject: [PATCH] Mark CrashWithoutDumping() as [[noreturn]] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit No behavior change. Bug: none Change-Id: Ie838df830221a09d5401c6c73c8c889ea714940e Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/5905738 Reviewed-by: Peter Boström Reviewed-by: Mark Mentovai Commit-Queue: Nico Weber --- client/crashpad_client.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/crashpad_client.h b/client/crashpad_client.h index 3c966686..f5a12b06 100644 --- a/client/crashpad_client.h +++ b/client/crashpad_client.h @@ -433,7 +433,7 @@ class CrashpadClient { //! FirstChanceHandler and crashes the current process. //! //! \param[in] message A message to be logged before crashing. - static void CrashWithoutDump(const std::string& message); + [[noreturn]] static void CrashWithoutDump(const std::string& message); //! \brief The type for custom handlers installed by clients. using FirstChanceHandler = bool (*)(int, siginfo_t*, ucontext_t*);