summaryrefslogtreecommitdiffstats
path: root/include/zix/attributes.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-06-28 16:42:32 -0400
committerDavid Robillard <d@drobilla.net>2022-06-28 18:52:23 -0400
commit5e71a7d6b81f12c224cc06eacb6fee8e96b2ac8c (patch)
tree4d110e87040a0db8c9624c394a3d8d2e3b3cba04 /include/zix/attributes.h
parentacb8ea62ac287efcfb50f20cd419b70f6c5a15a9 (diff)
downloadzix-5e71a7d6b81f12c224cc06eacb6fee8e96b2ac8c.tar.gz
zix-5e71a7d6b81f12c224cc06eacb6fee8e96b2ac8c.tar.bz2
zix-5e71a7d6b81f12c224cc06eacb6fee8e96b2ac8c.zip
Fix build as C with MSVC
Diffstat (limited to 'include/zix/attributes.h')
-rw-r--r--include/zix/attributes.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/zix/attributes.h b/include/zix/attributes.h
index 3499a7d..3824ce6 100644
--- a/include/zix/attributes.h
+++ b/include/zix/attributes.h
@@ -57,6 +57,8 @@
# define ZIX_UNUSED(name)
#elif defined(__GNUC__)
# define ZIX_UNUSED(name) name##_unused __attribute__((__unused__))
+#elif defined(_MSC_VER)
+# define ZIX_UNUSED(name) __pragma(warning(suppress:4100)) name
#else
# define ZIX_UNUSED(name) name
#endif