From 31acf572996519696498f0dcb47aab2ba46f935f Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Wed, 19 Apr 2023 18:16:48 +0000 Subject: [PATCH] wincng: fix unused variables with `LIBSSH2_RSA_SHA2` disabled Tested in #979 --- src/wincng.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wincng.c b/src/wincng.c index e794c59b..7fed2c42 100644 --- a/src/wincng.c +++ b/src/wincng.c @@ -2723,6 +2723,9 @@ _libssh2_supported_key_sign_algorithms(LIBSSH2_SESSION *session, memcmp(key_method, "ssh-rsa", key_method_len) == 0) { return "rsa-sha2-512,rsa-sha2-256,ssh-rsa"; } +#else + (void)key_method; + (void)key_method_len; #endif return NULL;