From 1753360f103d4ad70b6d73cb22ec7f44fa444ba7 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Fri, 18 Jul 2025 22:04:51 +0200 Subject: [PATCH] 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 ' --- lib/vssh/libssh.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/vssh/libssh.c b/lib/vssh/libssh.c index 3bae943c7c..0e8d8ebf14 100644 --- a/lib/vssh/libssh.c +++ b/lib/vssh/libssh.c @@ -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 )