summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/slang.h6
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)