summaryrefslogtreecommitdiff
path: root/lib/ftp.c
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-12-06 22:14:50 +0000
committerSteve Holme <steve_holme@hotmail.com>2014-12-06 22:14:50 +0000
commitef91f04927f366366bbdd17774b462351becb3b8 (patch)
tree26661bf68876b5c2ec6a712d38ac77a1b776e338 /lib/ftp.c
parentbefe9a10b976bba109d4dbde6dc1deb2cd0a79bc (diff)
downloadcurl-ef91f04927f366366bbdd17774b462351becb3b8.tar.gz
ftp.c: Fixed compilation warnings when proxy support disabled
ftp.c:1827 warning: unused parameter 'newhost' ftp.c:1827 warning: unused parameter 'newport'
Diffstat (limited to 'lib/ftp.c')
-rw-r--r--lib/ftp.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index c75f22965..b7c7ace8c 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -1828,9 +1828,15 @@ static CURLcode proxy_magic(struct connectdata *conn,
bool *magicdone)
{
CURLcode result = CURLE_OK;
- struct SessionHandle *data=conn->data;
+ struct SessionHandle *data = conn->data;
+
+#if defined(CURL_DISABLE_PROXY)
+ (void) newhost;
+ (void) newport;
+#endif
*magicdone = FALSE;
+
switch(conn->proxytype) {
case CURLPROXY_SOCKS5:
case CURLPROXY_SOCKS5_HOSTNAME:
@@ -1888,6 +1894,7 @@ static CURLcode proxy_magic(struct connectdata *conn,
else
*magicdone = TRUE;
}
+
return result;
}