From 09d8e048d2264d89886cda8e87e8a452d4f913c1 Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Thu, 17 Nov 2022 03:33:10 +0800 Subject: Squash warnings (#2515) * Don't use uname -p It's not portable (doesn't work on my machine) * Disable maybe-uninitialized warning on gcc Only false positives at the moment * Squash warning in miniz Allow it to use 64 bit file handing functions with gcc * Use noreturn c++11 attribute in SLANG_RETURN_NEVER * Squash uninitialized variable warnings * Squash const char/char conversion warnings Co-authored-by: Yong He --- slang.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'slang.h') diff --git a/slang.h b/slang.h index 6589de67d..2027aeab3 100644 --- a/slang.h +++ b/slang.h @@ -380,7 +380,7 @@ convention for interface methods. #endif // __cplusplus #ifndef SLANG_RETURN_NEVER -# define SLANG_RETURN_NEVER /* empty */ +# define SLANG_RETURN_NEVER [[noreturn]] #endif // SLANG_RETURN_NEVER /* Macros for detecting processor */ -- cgit v1.2.3