diff --git a/lib/hostip.c b/lib/hostip.c index 58855328d4..191aaeb8de 100644 --- a/lib/hostip.c +++ b/lib/hostip.c @@ -505,6 +505,8 @@ Curl_dnscache_mk_entry(struct Curl_easy *data, return NULL; } } +#else + (void)data; #endif if(!hostlen) hostlen = strlen(hostname); diff --git a/lib/setopt.c b/lib/setopt.c index eecfd55326..1380c33db6 100644 --- a/lib/setopt.c +++ b/lib/setopt.c @@ -240,6 +240,7 @@ static CURLcode protocol2num(const char *str, curl_prot_t *val) return CURLE_OK; } +#if !defined(CURL_DISABLE_HTTP) || !defined(CURL_DISABLE_PROXY) static CURLcode httpauth(struct Curl_easy *data, bool proxy, unsigned long auth) { @@ -284,6 +285,7 @@ static CURLcode httpauth(struct Curl_easy *data, bool proxy, data->set.httpauth = auth; return CURLE_OK; } +#endif /* !CURL_DISABLE_HTTP || !CURL_DISABLE_PROXY */ #ifndef CURL_DISABLE_HTTP static CURLcode setopt_HTTP_VERSION(struct Curl_easy *data, long arg) diff --git a/lib/url.c b/lib/url.c index 56c88810f8..977b6a6049 100644 --- a/lib/url.c +++ b/lib/url.c @@ -2760,6 +2760,7 @@ static CURLcode parse_remote_port(struct Curl_easy *data, return CURLE_OK; } +#ifndef CURL_DISABLE_NETRC static bool str_has_ctrl(const char *input) { if(input) { @@ -2772,6 +2773,7 @@ static bool str_has_ctrl(const char *input) } return FALSE; } +#endif /* * Override the login details from the URL with that in the CURLOPT_USERPWD