From 3a564fecabd1f215a5345086dbe1f312d22693cc Mon Sep 17 00:00:00 2001 From: Jay Satiro Date: Fri, 10 May 2024 19:14:29 -0400 Subject: [PATCH] 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. --- lib/ftp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ftp.c b/lib/ftp.c index 049ea2c5c2..b88d4d7b0f 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -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 -- 2.47.3