smtp fix unsued variable

lib/smtp.c:356:42: error: unused parameter 'data' [-Werror,-Wunused-parameter]
  356 | static void smtp_state(struct Curl_easy *data,
      |                                          ^

-DCURL_DISABLE_ALTSVC=ON -DCURL_DISABLE_BEARER_AUTH=ON -DCURL_DISABLE_BINDLOCAL=ON -DCURL_DISABLE_CA_SEARCH=ON -DCURL_DISABLE_COOKIES=ON -DCURL_DISABLE_DICT=ON -DCURL_DISABLE_DOH=ON -DCURL_DISABLE_FORM_API=ON -DCURL_DISABLE_GOPHER=ON -DCURL_DISABLE_IMAP=ON -DCURL_DISABLE_INSTALL=ON -DCURL_DISABLE_LDAP=ON -DCURL_DISABLE_LDAPS=ON -DCURL_DISABLE_LIBCURL_OPTION=ON -DCURL_DISABLE_MIME=ON -DCURL_DISABLE_MQTT=ON -DCURL_DISABLE_NEGOTIATE_AUTH=ON -DCURL_DISABLE_OPENSSL_AUTO_LOAD_CONFIG=ON -DCURL_DISABLE_PARSEDATE=ON -DCURL_DISABLE_PROXY=ON -DCURL_DISABLE_RTSP=ON -DCURL_DISABLE_SOCKETPAIR=ON -DCURL_DISABLE_SRP=ON -DCURL_DISABLE_VERBOSE_STRINGS=ON -DCURL_DISABLE_WEBSOCKETS=ON -DENABLE_CURLDEBUG=ON -DENABLE_DEBUG=ON -DENABLE_UNICODE=ON
This commit is contained in:
Viktor Szakats 2025-07-18 18:56:54 +02:00
parent 3c1c1e4c7d
commit 904ddd39c6
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -357,7 +357,7 @@ static void smtp_state(struct Curl_easy *data,
struct smtp_conn *smtpc,
smtpstate newstate)
{
#if !defined(CURL_DISABLE_VERBOSE_STRINGS)
#ifndef CURL_DISABLE_VERBOSE_STRINGS
/* for debug purposes */
static const char * const names[] = {
"STOP",
@ -379,6 +379,8 @@ static void smtp_state(struct Curl_easy *data,
if(smtpc->state != newstate)
CURL_TRC_SMTP(data, "state change from %s to %s",
names[smtpc->state], names[newstate]);
#else
(void)data;
#endif
smtpc->state = newstate;