diff options
author | MAntoniak <47522782+MAntoniak@users.noreply.github.com> | 2021-07-17 17:43:57 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-07-18 18:37:05 +0200 |
commit | 9a47d7712611f035e1e9f762bb4b94207c50ec24 (patch) | |
tree | e9159a18c2f0370eba7803cd298cbcc8a6040198 /lib/urldata.h | |
parent | d896184c9b891998baee9e6934dd47dc64debe45 (diff) | |
download | curl-9a47d7712611f035e1e9f762bb4b94207c50ec24.tar.gz |
lib: fix compiler warnings with CURL_DISABLE_NETRC
warning C4189: 'netrc_user_changed': local variable is initialized but
not referenced
warning C4189: 'netrc_passwd_changed': local variable is initialized but
not referenced
Closes #7423
Diffstat (limited to 'lib/urldata.h')
-rw-r--r-- | lib/urldata.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/urldata.h b/lib/urldata.h index 0df33c36d..29aa3928d 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -508,7 +508,9 @@ struct ConnectBits { BIT(ftp_use_data_ssl); /* Enabled SSL for the data connection */ BIT(ftp_use_control_ssl); /* Enabled SSL for the control connection */ #endif +#ifndef CURL_DISABLE_NETRC BIT(netrc); /* name+password provided by netrc */ +#endif BIT(bound); /* set true if bind() has already been done on this socket/ connection */ BIT(multiplex); /* connection is multiplexed */ @@ -1727,8 +1729,10 @@ struct UserDefined { */ curl_sshkeycallback ssh_keyfunc; /* key matching callback */ void *ssh_keyfunc_userp; /* custom pointer to callback */ +#ifndef CURL_DISABLE_NETRC enum CURL_NETRC_OPTION use_netrc; /* defined in include/curl.h */ +#endif curl_usessl use_ssl; /* if AUTH TLS is to be attempted etc, for FTP or IMAP or POP3 or others! */ long new_file_perms; /* Permissions to use when creating remote files */ |