ftp.c: Fixed compilation warnings when proxy support disabled

ftp.c:1827 warning: unused parameter 'newhost'
ftp.c:1827 warning: unused parameter 'newport'
This commit is contained in:
Steve Holme 2014-12-06 22:14:50 +00:00
parent befe9a10b9
commit ef91f04927

View File

@ -1828,9 +1828,15 @@ static CURLcode proxy_magic(struct connectdata *conn,
bool *magicdone) bool *magicdone)
{ {
CURLcode result = CURLE_OK; 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; *magicdone = FALSE;
switch(conn->proxytype) { switch(conn->proxytype) {
case CURLPROXY_SOCKS5: case CURLPROXY_SOCKS5:
case CURLPROXY_SOCKS5_HOSTNAME: case CURLPROXY_SOCKS5_HOSTNAME:
@ -1888,6 +1894,7 @@ static CURLcode proxy_magic(struct connectdata *conn,
else else
*magicdone = TRUE; *magicdone = TRUE;
} }
return result; return result;
} }