aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-12-13 12:32:32 +0000
committerSteve Holme <steve_holme@hotmail.com>2014-12-13 12:32:32 +0000
commit5f5814ca5e94e6c11d4d3007ea1a845810e085a2 (patch)
tree5c6a6083b8f2f320bde30545e6db497d779589d9
parent2ecce667a6bc193ad04a9057412e126681462012 (diff)
ftp.c: Fixed compilation warning when no verbose string support
ftp.c:819: warning: unused parameter 'lineno'
-rw-r--r--lib/ftp.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index b7c7ace8c..34964d6b0 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -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;
}