Module: Mesa Branch: main Commit: a3150399178028a958a71b291b825316a0581254 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a3150399178028a958a71b291b825316a0581254
Author: Yonggang Luo <[email protected]> Date: Fri Mar 25 00:59:24 2022 +0800 c11: Fixes unused parameter warnings Signed-off-by: Yonggang Luo <[email protected]> Reviewed-by: Yiwei Zhang <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15553> --- 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));
