From: Marcel Raad Date: Sun, 7 May 2017 17:02:34 +0000 (+0200) Subject: asyn-thread: fix unused macro warnings X-Git-Tag: curl-7_54_1~148 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ea1b86478662dce1c3f1ce417180efd5d998c883;p=curl asyn-thread: fix unused macro warnings Don't do anything in this file if CURLRES_THREADED is not defined. --- diff --git a/lib/asyn-thread.c b/lib/asyn-thread.c index 26a15b110..2138c78b8 100644 --- a/lib/asyn-thread.c +++ b/lib/asyn-thread.c @@ -22,6 +22,11 @@ #include "curl_setup.h" +/*********************************************************************** + * Only for threaded name resolves builds + **********************************************************************/ +#ifdef CURLRES_THREADED + #ifdef HAVE_NETINET_IN_H #include #endif @@ -74,11 +79,6 @@ #include "curl_memory.h" #include "memdebug.h" -/*********************************************************************** - * Only for threaded name resolves builds - **********************************************************************/ -#ifdef CURLRES_THREADED - /* * Curl_resolver_global_init() * Called from curl_global_init() to initialize global resolver environment.