summaryrefslogtreecommitdiff
path: root/config.h.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'config.h.cmake')
-rw-r--r--config.h.cmake11
1 files changed, 6 insertions, 5 deletions
diff --git a/config.h.cmake b/config.h.cmake
index 04dc00f7..5d626807 100644
--- a/config.h.cmake
+++ b/config.h.cmake
@@ -434,10 +434,11 @@ typedef ssize_t IO_SSIZE_T;
#define MAXPATHLEN 1024
#endif
-#if !defined(S_SPLINT_S)
-#if !defined(_MSC_VER)
-#define _unused(x) (void)x;
+/* Unused argument macro */
+#if !defined(_unused)
+#if defined(__LCLINT__) || defined(S_SPLINT_S)
+#define _unused(x) /*@unused@*/ x
#else
-#define _unused(x)
-#endif
+#define _unused(x) (void)x
#endif
+#endif \ No newline at end of file