mirror of
https://github.com/curl/curl.git
synced 2026-06-06 17:44:16 +03:00
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:
parent
3c1c1e4c7d
commit
904ddd39c6
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue