Skip to content

Commit

Permalink
ftp.c: Fixed compilation warnings when proxy support disabled
Browse files Browse the repository at this point in the history
ftp.c:1827 warning: unused parameter 'newhost'
ftp.c:1827 warning: unused parameter 'newport'
  • Loading branch information
captain-caveman2k committed Dec 6, 2014
1 parent befe9a1 commit ef91f04
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/ftp.c
Expand Up @@ -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:
Expand Down Expand Up @@ -1888,6 +1894,7 @@ static CURLcode proxy_magic(struct connectdata *conn,
else
*magicdone = TRUE;
}

return result;
}

Expand Down

0 comments on commit ef91f04

Please sign in to comment.