From 8874670463276073fe6cdb0bccd0d9a9a982b4c5 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 11 Dec 2024 10:06:03 -0500 Subject: Fix clang and clang-tidy warnings on Windows --- src/posix/filesystem_posix.c | 4 ++++ src/posix/sem_posix.c | 3 +++ 2 files changed, 7 insertions(+) (limited to 'src/posix') diff --git a/src/posix/filesystem_posix.c b/src/posix/filesystem_posix.c index bb398c1..ea091e0 100644 --- a/src/posix/filesystem_posix.c +++ b/src/posix/filesystem_posix.c @@ -341,6 +341,9 @@ zix_canonical_path(ZixAllocator* const allocator, const char* const path) } zix_free(allocator, buffer); + +#else + (void)allocator; #endif return NULL; @@ -449,6 +452,7 @@ zix_current_path(ZixAllocator* const allocator) return current; #else + (void)allocator; return NULL; #endif diff --git a/src/posix/sem_posix.c b/src/posix/sem_posix.c index ea49db9..5b14e37 100644 --- a/src/posix/sem_posix.c +++ b/src/posix/sem_posix.c @@ -61,6 +61,9 @@ zix_sem_timed_wait(ZixSem* sem, { #if !USE_CLOCK_GETTIME || !USE_SEM_TIMEDWAIT + (void)sem; + (void)seconds; + (void)nanoseconds; return ZIX_STATUS_NOT_SUPPORTED; #else -- cgit v1.2.1