Skip to content

Commit

Permalink
ftp.c: Fixed compilation warning when no verbose string support
Browse files Browse the repository at this point in the history
ftp.c:819: warning: unused parameter 'lineno'
  • Loading branch information
captain-caveman2k committed Dec 13, 2014
1 parent 2ecce66 commit 5f5814c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/ftp.c
Expand Up @@ -821,12 +821,19 @@ static void _state(struct connectdata *conn,
)
{
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)
infof(conn->data, "FTP %p (line %d) state change from %s to %s\n",
(void *)ftpc, lineno, ftp_state_names[ftpc->state],
ftp_state_names[newstate]);
#endif
#endif

ftpc->state = newstate;
}

Expand Down

0 comments on commit 5f5814c

Please sign in to comment.