mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
ftp.c: Fixed compilation warning when no verbose string support
ftp.c:819: warning: unused parameter 'lineno'
This commit is contained in:
parent
2ecce667a6
commit
5f5814ca5e
@ -821,12 +821,19 @@ static void _state(struct connectdata *conn,
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct ftp_conn *ftpc = &conn->proto.ftpc;
|
struct ftp_conn *ftpc = &conn->proto.ftpc;
|
||||||
#if defined(DEBUGBUILD) && !defined(CURL_DISABLE_VERBOSE_STRINGS)
|
|
||||||
|
#if defined(DEBUGBUILD)
|
||||||
|
|
||||||
|
#if defined(CURL_DISABLE_VERBOSE_STRINGS)
|
||||||
|
(void) lineno;
|
||||||
|
#else
|
||||||
if(ftpc->state != newstate)
|
if(ftpc->state != newstate)
|
||||||
infof(conn->data, "FTP %p (line %d) state change from %s to %s\n",
|
infof(conn->data, "FTP %p (line %d) state change from %s to %s\n",
|
||||||
(void *)ftpc, lineno, ftp_state_names[ftpc->state],
|
(void *)ftpc, lineno, ftp_state_names[ftpc->state],
|
||||||
ftp_state_names[newstate]);
|
ftp_state_names[newstate]);
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
ftpc->state = newstate;
|
ftpc->state = newstate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user