diff options
author | David Robillard <d@drobilla.net> | 2023-02-04 18:17:08 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-02-04 18:17:08 -0500 |
commit | 5fa282a1a0c0ebec5704f223be301892fba9bcbe (patch) | |
tree | cec8af3f21313187d8367e0eb828b8669e7ebd63 /include | |
parent | 0634c9a6ac22d520ea63beab44ade590816f7f9e (diff) | |
download | zix-5fa282a1a0c0ebec5704f223be301892fba9bcbe.tar.gz zix-5fa282a1a0c0ebec5704f223be301892fba9bcbe.tar.bz2 zix-5fa282a1a0c0ebec5704f223be301892fba9bcbe.zip |
Fix clang build on Windows
Diffstat (limited to 'include')
-rw-r--r-- | include/zix/attributes.h | 2 | ||||
-rw-r--r-- | include/zix/sem.h | 2 |
2 files changed, 2 insertions, 2 deletions
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 diff --git a/include/zix/sem.h b/include/zix/sem.h index 206e4e9..eeecfb1 100644 --- a/include/zix/sem.h +++ b/include/zix/sem.h @@ -129,7 +129,7 @@ struct ZixSemImpl { #elif defined(_WIN32) struct ZixSemImpl { - HANDLE sem; + HANDLE ZIX_NONNULL sem; }; #else /* !defined(__APPLE__) && !defined(_WIN32) */ |