From 989e0f10acb641a06be2535ed44056d561d77ecb Mon Sep 17 00:00:00 2001 From: Riyyi Date: Mon, 1 Feb 2021 19:42:12 +0100 Subject: [PATCH] Remove [[noreturn]] from assert as it generated alot of compiler warnings, why? --- inferno/src/inferno/assert.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inferno/src/inferno/assert.h b/inferno/src/inferno/assert.h index 31a7231..7168ae7 100644 --- a/inferno/src/inferno/assert.h +++ b/inferno/src/inferno/assert.h @@ -43,7 +43,7 @@ namespace Inferno { #ifdef NF_ENABLE_ASSERTS template - [[noreturn]] inline void __assert_fail(const char* assertion, const char* file, unsigned int line, const char* function, P&&... parameters) + inline void __assert_fail(const char* assertion, const char* file, unsigned int line, const char* function, P&&... parameters) { dangerln(false, "ASSERTION `{}' FAILED.", assertion); @@ -52,7 +52,7 @@ namespace Inferno { dbgln(Log::Danger, false, std::forward

(parameters)...); } - danger() << "\n\t" << file << ":" << line << ": " << function; + danger() << "\n " << file << ":" << line << " in " << function; raise(ABORT_SIGNAL); }