summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Raad <Marcel.Raad@teamviewer.com>2019-12-09 13:48:24 +0100
committerMarcel Raad <Marcel.Raad@teamviewer.com>2019-12-13 20:55:51 +0100
commit4457e08a7a0064fdb11532c1d9fb689391470d65 (patch)
tree417e270d12d03441c54b7af6f6bf6f17fbd20de0
parent9f239811fdc9881d64fee5f20cdfe3b66e8c2e14 (diff)
downloadcurl-4457e08a7a0064fdb11532c1d9fb689391470d65.tar.gz
hostip: suppress compiler warning
With `--disable-doh --disable-threaded-resolver`, the `dns` parameter is not used. Closes https://github.com/curl/curl/pull/4692
-rw-r--r--lib/hostip.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/hostip.c b/lib/hostip.c
index d4e8f9366..b434b390a 100644
--- a/lib/hostip.c
+++ b/lib/hostip.c
@@ -1021,6 +1021,10 @@ CURLcode Curl_loadhostpairs(struct Curl_easy *data)
CURLcode Curl_resolv_check(struct connectdata *conn,
struct Curl_dns_entry **dns)
{
+#if defined(CURL_DISABLE_DOH) && !defined(CURLRES_ASYNCH)
+ (void)dns;
+#endif
+
if(conn->data->set.doh)
return Curl_doh_is_resolved(conn, dns);
return Curl_resolver_is_resolved(conn, dns);