From 973ff14180d874e977bc6bc0743845d4f3919279 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 14 Jan 2019 00:35:07 +0100 Subject: [PATCH] Make QtCreator stop complaining about the ASSERT macro. --- LibC/assert.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LibC/assert.h b/LibC/assert.h index 546dcc90a7..25ea654db6 100644 --- a/LibC/assert.h +++ b/LibC/assert.h @@ -4,7 +4,7 @@ __BEGIN_DECLS -void __assertion_failed(const char* msg, const char* file, unsigned line, const char* func) __NORETURN; +void __assertion_failed(const char* msg, const char* file, unsigned line, const char* func) __attribute__ ((noreturn)); #define assert(expr) ((expr) ? (void)0 : __assertion_failed(#expr, __FILE__, __LINE__, __PRETTY_FUNCTION__)) #define CRASH() do { asm volatile("ud2"); } while(0)