Browse Source

Remove [[noreturn]] from assert as it generated alot of compiler warnings, why?

master
Riyyi 4 years ago
parent
commit
989e0f10ac
  1. 4
      inferno/src/inferno/assert.h

4
inferno/src/inferno/assert.h

@ -43,7 +43,7 @@ namespace Inferno {
#ifdef NF_ENABLE_ASSERTS #ifdef NF_ENABLE_ASSERTS
template<typename... P> template<typename... P>
[[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); dangerln(false, "ASSERTION `{}' FAILED.", assertion);
@ -52,7 +52,7 @@ namespace Inferno {
dbgln(Log::Danger, false, std::forward<P>(parameters)...); dbgln(Log::Danger, false, std::forward<P>(parameters)...);
} }
danger() << "\n\t" << file << ":" << line << ": " << function; danger() << "\n " << file << ":" << line << " in " << function;
raise(ABORT_SIGNAL); raise(ABORT_SIGNAL);
} }

Loading…
Cancel
Save