mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 17:31:46 -05:00
hostip: suppress compiler warning
With `--disable-doh --disable-threaded-resolver`, the `dns` parameter is not used. Closes https://github.com/curl/curl/pull/4692
This commit is contained in:
parent
9f239811fd
commit
4457e08a7a
@ -1021,6 +1021,10 @@ CURLcode Curl_loadhostpairs(struct Curl_easy *data)
|
|||||||
CURLcode Curl_resolv_check(struct connectdata *conn,
|
CURLcode Curl_resolv_check(struct connectdata *conn,
|
||||||
struct Curl_dns_entry **dns)
|
struct Curl_dns_entry **dns)
|
||||||
{
|
{
|
||||||
|
#if defined(CURL_DISABLE_DOH) && !defined(CURLRES_ASYNCH)
|
||||||
|
(void)dns;
|
||||||
|
#endif
|
||||||
|
|
||||||
if(conn->data->set.doh)
|
if(conn->data->set.doh)
|
||||||
return Curl_doh_is_resolved(conn, dns);
|
return Curl_doh_is_resolved(conn, dns);
|
||||||
return Curl_resolver_is_resolved(conn, dns);
|
return Curl_resolver_is_resolved(conn, dns);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user