diff options
author | Jay Satiro <raysatiro@yahoo.com> | 2024-05-10 19:14:29 -0400 |
---|---|---|
committer | Jay Satiro <raysatiro@yahoo.com> | 2024-05-10 19:14:29 -0400 |
commit | 3a564fecabd1f215a5345086dbe1f312d22693cc (patch) | |
tree | 3108b9b31e5d09791ac1aa05d999a11e93f64767 | |
parent | 798a37b25e9914cab66d7d5154e40af98df2b8ca (diff) | |
download | curl-3a564fecabd1f215a5345086dbe1f312d22693cc.tar.gz |
ftp: fix build for CURL_DISABLE_VERBOSE_STRINGS
This is a follow-up to b7c7dffe which changed the FTP state change
verbose debug text (aka infof) to tracing debug text (aka trc).
Prior to this change if libcurl was without DEBUGBUILD and built with
CURL_DISABLE_VERBOSE_STRINGS (ie --disable-verbose) the build would
error.
Caught by Circle CI job openssl-no-verbose.
-rw-r--r-- | lib/ftp.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -154,7 +154,9 @@ static void _ftp_state(struct Curl_easy *data, struct ftp_conn *ftpc = &conn->proto.ftpc; #if defined(CURL_DISABLE_VERBOSE_STRINGS) - (void) lineno; +#ifdef DEBUGBUILD + (void)lineno; +#endif #else /* CURL_DISABLE_VERBOSE_STRINGS */ if(ftpc->state != newstate) #ifdef DEBUGBUILD |