]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
ftp.c: Fixed compilation warning when no verbose string support
authorSteve Holme <steve_holme@hotmail.com>
Sat, 13 Dec 2014 12:32:32 +0000 (12:32 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Sat, 13 Dec 2014 12:32:32 +0000 (12:32 +0000)
ftp.c:819: warning: unused parameter 'lineno'

lib/ftp.c

index b7c7ace8cca5ff8456d22326782aec0a49c50fcc..34964d6b0c5cfcb3711cf7a79be4ec10fa51b72a 100644 (file)
--- 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;
 }