diff options
| author | Steve Holme <steve_holme@hotmail.com> | 2014-12-13 12:32:32 +0000 | 
|---|---|---|
| committer | Steve Holme <steve_holme@hotmail.com> | 2014-12-13 12:32:32 +0000 | 
| commit | 5f5814ca5e94e6c11d4d3007ea1a845810e085a2 (patch) | |
| tree | 5c6a6083b8f2f320bde30545e6db497d779589d9 | |
| parent | 2ecce667a6bc193ad04a9057412e126681462012 (diff) | |
ftp.c: Fixed compilation warning when no verbose string support
ftp.c:819: warning: unused parameter 'lineno'
| -rw-r--r-- | lib/ftp.c | 9 | 
1 files changed, 8 insertions, 1 deletions
@@ -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;  }  | 
