From a559f94321424352c8db702d63119e5be74a1cda Mon Sep 17 00:00:00 2001 From: Marcel Raad Date: Mon, 18 Aug 2025 09:48:12 +0200 Subject: [PATCH] asyn-thrdd: silence unused parameter warning Closes https://github.com/curl/curl/pull/18310 --- lib/asyn-thrdd.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/asyn-thrdd.c b/lib/asyn-thrdd.c index 7884dc166a..1c0931f4a2 100644 --- a/lib/asyn-thrdd.c +++ b/lib/asyn-thrdd.c @@ -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); -- 2.47.3