From 5e71a7d6b81f12c224cc06eacb6fee8e96b2ac8c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 28 Jun 2022 16:42:32 -0400 Subject: Fix build as C with MSVC --- include/zix/attributes.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/zix/attributes.h') 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 -- cgit v1.2.1