summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorYonggang Luo <luoyonggang@gmail.com>2022-03-25 00:59:24 +0800
committerMarge Bot <emma+marge@anholt.net>2022-03-24 21:56:48 +0000
commita3150399178028a958a71b291b825316a0581254 (patch)
tree6cc01defeeb78bfd16bf5db3bb87eccdf096c754 /include
parent0f1b3fc17f0e543c55d6c30d9c1fadc610219b5b (diff)
c11: Fixes unused parameter warnings
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15553>
Diffstat (limited to 'include')
-rw-r--r--include/c11/threads_win32.h2
1 files changed, 2 insertions, 0 deletions
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));