summaryrefslogtreecommitdiff
path: root/slang.h
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2022-11-17 03:33:10 +0800
committerGitHub <noreply@github.com>2022-11-16 11:33:10 -0800
commit09d8e048d2264d89886cda8e87e8a452d4f913c1 (patch)
treede925c032837ae21e7693e3c44a1c825c5fd3e6e /slang.h
parent8d500475bb11b025960bf211d505540867ce68e7 (diff)
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 <yonghe@outlook.com>
Diffstat (limited to 'slang.h')
-rw-r--r--slang.h2
1 files changed, 1 insertions, 1 deletions
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 */