diff options
| author | Jay Kwak <82421531+jkwak-work@users.noreply.github.com> | 2024-07-18 14:31:27 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-18 14:31:27 -0700 |
| commit | be66cc88acebe87e175659df1afc2e4586ed8958 (patch) | |
| tree | 6f3e07cc0017e7d1483c176c1144829db47b375d /include | |
| parent | ad379b7c532bef5ac49e6d730027ac8751e618d7 (diff) | |
Enable warnings-as-error for CI (#4659)
Enable warnings-as-error for CI
Closes #4664.
Uses glslang commit that fixed a compiler warning
Fixes a recent warning from external/CMakelist.txt
A new macro, `SLANG_MAYBE_UNUSED` is added for a future need.
Diffstat (limited to 'include')
| -rw-r--r-- | include/slang.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/slang.h b/include/slang.h index 86ca4649b..76743a426 100644 --- a/include/slang.h +++ b/include/slang.h @@ -326,6 +326,12 @@ convention for interface methods. # define SLANG_UNUSED(v) (void)v; #endif +#if defined(__llvm__) +# define SLANG_MAYBE_UNUSED [[maybe_unused]] +#else +# define SLANG_MAYBE_UNUSED +#endif + // Used for doing constant literals #ifndef SLANG_INT64 # define SLANG_INT64(x) (x##ll) |
