asyn-thrdd: silence unused parameter warning

Closes https://github.com/curl/curl/pull/18310
This commit is contained in:
Marcel Raad 2025-08-18 09:48:12 +02:00
parent 0ea1e50d00
commit a559f94321
No known key found for this signature in database
GPG key ID: 33C416EFAE4D6F02

View 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);