From: Jay Satiro Date: Fri, 10 May 2024 23:14:29 +0000 (-0400) Subject: ftp: fix build for CURL_DISABLE_VERBOSE_STRINGS X-Git-Tag: curl-8_8_0~87 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a564fecabd1f215a5345086dbe1f312d22693cc;p=thirdparty%2Fcurl.git 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. --- 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