From 08b0725fd370088ff61479c8a4d5b6dc9e54f36d Mon Sep 17 00:00:00 2001 From: capitalistspz Date: Sat, 1 Aug 2026 16:51:46 +0100 Subject: [PATCH] Remove `WUT_NORETURN` --- include/coreinit/debug.h | 6 +++--- include/wut.h | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/include/coreinit/debug.h b/include/coreinit/debug.h index e545811e..6de02041 100644 --- a/include/coreinit/debug.h +++ b/include/coreinit/debug.h @@ -100,7 +100,7 @@ OSPanic(const char *file, uint32_t line, const char *fmt, ...) - WUT_FORMAT_PRINTF(3, 4) WUT_NORETURN; + WUT_FORMAT_PRINTF(3, 4); /** * Set a callback to be triggered when an \link OSPanic \endlink occurs @@ -116,7 +116,7 @@ OSSetPanicCallback(OSPanicCallback callback, * \sa coreinit_screen */ void -OSFatal(const char *msg) WUT_NORETURN; +OSFatal(const char *msg); /** * Switch to the fatal error process ("An error has occured." screen) @@ -129,7 +129,7 @@ OSFatal(const char *msg) WUT_NORETURN; void OSSendFatalError(OSFatalError *error, const char *functionName, - uint32_t line) WUT_NORETURN; + uint32_t line); uint32_t OSGetSymbolName(uint32_t addr, diff --git a/include/wut.h b/include/wut.h index f721a9bf..c280cc11 100644 --- a/include/wut.h +++ b/include/wut.h @@ -10,7 +10,6 @@ #define WUT_DEPRECATED(reason) __attribute__((__deprecated__(reason))) #define WUT_FORMAT_PRINTF(fmt, args) __attribute__((__format__(__printf__, fmt, args))) -#define WUT_NORETURN __attribute__((noreturn)) #else // not __GNUC__ and not __clang__