From a3150399178028a958a71b291b825316a0581254 Mon Sep 17 00:00:00 2001 From: Yonggang Luo Date: Fri, 25 Mar 2022 00:59:24 +0800 Subject: [PATCH] c11: Fixes unused parameter warnings Signed-off-by: Yonggang Luo Reviewed-by: Yiwei Zhang Part-of: --- include/c11/threads_win32.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/c11/threads_win32.h b/include/c11/threads_win32.h index 1b740d58176..27637d089b0 100644 --- a/include/c11/threads_win32.h +++ b/include/c11/threads_win32.h @@ -228,6 +228,7 @@ cnd_broadcast(cnd_t *cond) static inline void cnd_destroy(cnd_t *cond) { + (void)cond; assert(cond != NULL); // do nothing } @@ -456,6 +457,7 @@ thrd_join(thrd_t thr, int *res) static inline void thrd_sleep(const struct timespec *time_point, struct timespec *remaining) { + (void)remaining; assert(time_point); assert(!remaining); /* not implemented */ Sleep((DWORD)impl_timespec2msec(time_point));