From: Daniel Stenberg Date: Sun, 8 Sep 2019 21:47:56 +0000 (+0200) Subject: tool_setopt: handle a libcurl build without netrc support X-Git-Tag: curl-7_66_0~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=74e152f11915cdd46792daf5c5728be1b0dd9503;p=thirdparty%2Fcurl.git tool_setopt: handle a libcurl build without netrc support Reported-by: codesniffer13 on github Fixes #4302 Closes #4305 --- diff --git a/src/tool_setopt.c b/src/tool_setopt.c index 871e25c018..4c98d9057f 100644 --- a/src/tool_setopt.c +++ b/src/tool_setopt.c @@ -824,6 +824,16 @@ bool tool_setopt_skip(CURLoption tag) break; } #endif +#ifdef CURL_DISABLE_NETRC +#define USED_TAG + switch(tag) { + case CURLOPT_NETRC: + case CURLOPT_NETRC_FILE: + return TRUE; + default: + break; + } +#endif #ifndef USED_TAG (void)tag;