We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bd9b09 commit bd5e262Copy full SHA for bd5e262
src/csnip/cext.h
@@ -22,10 +22,12 @@
22
* This silences possible compiler warnings related to unused
23
* functions.
24
*/
25
-#if defined(__GNUC__) || defined(__clang__)
26
-#define csnip_cext_unused __attribute__((__unused__))
+#if __STDC_VERSION__ >= 202311L
+# define csnip_cext_unused [[maybe_unused]]
27
+#elif defined(__GNUC__) || defined(__clang__)
28
+# define csnip_cext_unused __attribute__((__unused__))
29
#else
-#define csnip_cext_unused
30
+# define csnip_cext_unused
31
#endif
32
33
/** Mark a symbol as belonging to the public API.
0 commit comments