From 36cdc13412142cc86e052a09c5574d95f29f499d Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Thu, 14 Jun 2018 19:22:57 +0200 Subject: [PATCH] win: fix mingw build error `UV__UNUSED()` does not evaluate to nothing with MinGW, use something else instead to squelch the unused argument warning. PR-URL: https://github.com/libuv/libuv/pull/1882 Reviewed-By: Bartosz Sosnowski Reviewed-By: Colin Ihrig --- src/win/thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win/thread.c b/src/win/thread.c index 3342fd75..912e41b3 100644 --- a/src/win/thread.c +++ b/src/win/thread.c @@ -374,7 +374,7 @@ int uv_cond_init(uv_cond_t* cond) { void uv_cond_destroy(uv_cond_t* cond) { /* nothing to do */ - UV__UNUSED(cond); + (void) &cond; }