summaryrefslogtreecommitdiff
path: root/config.h.cmake
diff options
context:
space:
mode:
authorAllen Winter <allen.winter@kdab.com>2014-09-08 10:58:53 -0400
committerAllen Winter <allen.winter@kdab.com>2014-09-08 10:58:53 -0400
commit1fd2afae84c3636bbc6c902b913d35f44963eb99 (patch)
treedb5250cf3246005e9064042e10a12aee3ef68aa9 /config.h.cmake
parent6a4c450a011464da65e73daf29a20bb3e49b60e9 (diff)
downloadlibical-git-1fd2afae84c3636bbc6c902b913d35f44963eb99.tar.gz
new _unused() macro to deal with unused arguments
as MSVC doesn't like the void trick.
Diffstat (limited to 'config.h.cmake')
-rw-r--r--config.h.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/config.h.cmake b/config.h.cmake
index c543e89f..2d16a851 100644
--- a/config.h.cmake
+++ b/config.h.cmake
@@ -171,3 +171,9 @@ typedef int pid_t;
#endif
#cmakedefine SIZEOF_TIME_T ${SIZEOF_TIME_T}
+
+#if !defined(_MSC_VER)
+#define _unused(x) (void)x;
+#else
+#define _unused(x)
+#endif