From 5fa282a1a0c0ebec5704f223be301892fba9bcbe Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 4 Feb 2023 18:17:08 -0500 Subject: Fix clang build on Windows --- include/zix/attributes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/zix/attributes.h') diff --git a/include/zix/attributes.h b/include/zix/attributes.h index dc367a1..518e5fb 100644 --- a/include/zix/attributes.h +++ b/include/zix/attributes.h @@ -70,7 +70,7 @@ // Unused parameter macro to suppresses warnings and make it impossible to use #if defined(__cplusplus) # define ZIX_UNUSED(name) -#elif defined(__GNUC__) +#elif defined(__GNUC__) || defined(__clang__) # define ZIX_UNUSED(name) name##_unused __attribute__((__unused__)) #elif defined(_MSC_VER) # define ZIX_UNUSED(name) __pragma(warning(suppress : 4100)) name -- cgit v1.2.1