libssh: fix unused variable

lib/vssh/libssh.c:235:33: error: unused parameter 'lineno' [-Werror,-Wunused-parameter]
  235 |                           , int lineno
      |                                 ^

options='-DCURL_DISABLE_ALTSVC=ON -DCURL_DISABLE_COOKIES=ON -DCURL_DISABLE_DIGEST_AUTH=ON -DCURL_DISABLE_DOH=ON -DCURL_DISABLE_GOPHER=ON -DCURL_DISABLE_HSTS=ON -DCURL_DISABLE_HTTP_AUTH=ON -DCURL_DISABLE_IMAP=ON -DCURL_DISABLE_LDAP=ON -DCURL_DISABLE_LIBCURL_OPTION=ON -DCURL_DISABLE_NEGOTIATE_AUTH=ON -DCURL_DISABLE_PARSEDATE=ON -DCURL_DISABLE_SOCKETPAIR=ON -DCURL_DISABLE_SRP=ON -DCURL_DISABLE_VERBOSE_STRINGS=ON -DENABLE_DEBUG=ON -DENABLE_UNICODE=ON -DHTTP_ONLY=ON -DCURL_ENABLE_SSL=OFF -DENABLE_IPV6=OFF -DENABLE_CURLDEBUG=ON -DCURL_USE_LIBSSH=ON -DCURL_USE_GNUTLS=ON -DCURL_USE_MBEDTLS=ON -DCURL_USE_WOLFSSL=ON -DUSE_ECH=OFF '
This commit is contained in:
Viktor Szakats 2025-07-18 22:04:51 +02:00
parent bdf240b7fa
commit 1753360f10
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -218,10 +218,10 @@ static CURLcode sftp_error_to_CURLE(int err)
return CURLE_SSH;
}
#ifndef DEBUGBUILD
#define myssh_to(x,y,z) myssh_set_state(x,y,z)
#else
#if defined(DEBUGBUILD) && !defined(CURL_DISABLE_VERBOSE_STRINGS)
#define myssh_to(x,y,z) myssh_set_state(x,y,z, __LINE__)
#else
#define myssh_to(x,y,z) myssh_set_state(x,y,z)
#endif
/*
@ -231,7 +231,7 @@ static CURLcode sftp_error_to_CURLE(int err)
static void myssh_set_state(struct Curl_easy *data,
struct ssh_conn *sshc,
sshstate nowstate
#ifdef DEBUGBUILD
#if defined(DEBUGBUILD) && !defined(CURL_DISABLE_VERBOSE_STRINGS)
, int lineno
#endif
)