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.
This commit is contained in:
parent
798a37b25e
commit
3a564fecab
@ -154,7 +154,9 @@ static void _ftp_state(struct Curl_easy *data,
|
|||||||
struct ftp_conn *ftpc = &conn->proto.ftpc;
|
struct ftp_conn *ftpc = &conn->proto.ftpc;
|
||||||
|
|
||||||
#if defined(CURL_DISABLE_VERBOSE_STRINGS)
|
#if defined(CURL_DISABLE_VERBOSE_STRINGS)
|
||||||
(void) lineno;
|
#ifdef DEBUGBUILD
|
||||||
|
(void)lineno;
|
||||||
|
#endif
|
||||||
#else /* CURL_DISABLE_VERBOSE_STRINGS */
|
#else /* CURL_DISABLE_VERBOSE_STRINGS */
|
||||||
if(ftpc->state != newstate)
|
if(ftpc->state != newstate)
|
||||||
#ifdef DEBUGBUILD
|
#ifdef DEBUGBUILD
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user