]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
asyn-thrdd: silence unused parameter warning
authorMarcel Raad <Marcel.Raad@teamviewer.com>
Mon, 18 Aug 2025 07:48:12 +0000 (09:48 +0200)
committerMarcel Raad <Marcel.Raad@teamviewer.com>
Mon, 18 Aug 2025 18:04:53 +0000 (20:04 +0200)
Closes https://github.com/curl/curl/pull/18310

lib/asyn-thrdd.c

index 7884dc166a36266e2b2088e5b9470a51f7bce07b..1c0931f4a274e80e3fd8cf36d002d722c80f529c 100644 (file)
@@ -644,6 +644,10 @@ CURLcode Curl_async_pollset(struct Curl_easy *data, struct easy_pollset *ps)
   struct async_thrdd_ctx *thrdd = &data->state.async.thrdd;
   CURLcode result = CURLE_OK;
 
+#if !defined(USE_HTTPSRR_ARES) && defined(CURL_DISABLE_SOCKETPAIR)
+  (void)ps;
+#endif
+
 #ifdef USE_HTTPSRR_ARES
   if(thrdd->rr.channel) {
     result = Curl_ares_pollset(data, thrdd->rr.channel, ps);