From: Marcel Raad Date: Thu, 2 Sep 2021 13:47:42 +0000 (+0200) Subject: multi: fix compiler warning with `CURL_DISABLE_WAKEUP` X-Git-Tag: curl-7_79_0~45 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F7661%2Fhead;p=thirdparty%2Fcurl.git multi: fix compiler warning with `CURL_DISABLE_WAKEUP` `use_wakeup` is unused in this case. Closes https://github.com/curl/curl/pull/7661 --- diff --git a/lib/multi.c b/lib/multi.c index 82d538d009..85097816db 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;