gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnurl] 130/151: hostip: suppress compiler warning


From: gnunet
Subject: [gnurl] 130/151: hostip: suppress compiler warning
Date: Fri, 20 Dec 2019 14:27:19 +0100

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit 4457e08a7a0064fdb11532c1d9fb689391470d65
Author: Marcel Raad <address@hidden>
AuthorDate: Mon Dec 9 13:48:24 2019 +0100

    hostip: suppress compiler warning
    
    With `--disable-doh --disable-threaded-resolver`, the `dns` parameter
    is not used.
    
    Closes https://github.com/curl/curl/pull/4692
---
 lib/hostip.c | 4 ++++
 1 file changed, 4 insertions(+)

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

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]