summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Raad <Marcel.Raad@teamviewer.com>2021-09-02 15:47:42 +0200
committerMarcel Raad <Marcel.Raad@teamviewer.com>2021-09-02 15:52:00 +0200
commit1b70748e862eaa4d2ae4b8e1d34bc3b47540af22 (patch)
tree87a308e3b2b4f9e1ef37a1282633cd556a396788
parent3f4b1b4ee5eb5e6c423e496c5b9b9f1457f40d99 (diff)
downloadcurl-1b70748e862eaa4d2ae4b8e1d34bc3b47540af22.tar.gz
multi: fix compiler warning with `CURL_DISABLE_WAKEUP`
`use_wakeup` is unused in this case. Closes https://github.com/curl/curl/pull/7661
-rw-r--r--lib/multi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/multi.c b/lib/multi.c
index 82d538d00..85097816d 100644
--- a/lib/multi.c
+++ b/lib/multi.c
@@ -1100,6 +1100,9 @@ static CURLMcode multi_wait(struct Curl_multi *multi,
WSANETWORKEVENTS wsa_events;
DEBUGASSERT(multi->wsa_event != WSA_INVALID_EVENT);
#endif
+#ifndef ENABLE_WAKEUP
+ (void)use_wakeup;
+#endif
if(!GOOD_MULTI_HANDLE(multi))
return CURLM_BAD_HANDLE;