]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
multi: fix compiler warning with `CURL_DISABLE_WAKEUP` 7661/head
authorMarcel Raad <Marcel.Raad@teamviewer.com>
Thu, 2 Sep 2021 13:47:42 +0000 (15:47 +0200)
committerMarcel Raad <Marcel.Raad@teamviewer.com>
Thu, 2 Sep 2021 13:52:00 +0000 (15:52 +0200)
`use_wakeup` is unused in this case.

Closes https://github.com/curl/curl/pull/7661

lib/multi.c

index 82d538d009e3cbbfe9bfebaaccabeaa0c17dd1de..85097816db5937e8a1dc484cd32be0462354fb1b 100644 (file)
@@ -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;