From a29e328b079d1a33da2ae2559a991057517f4c3f Mon Sep 17 00:00:00 2001 From: Karel Miko Date: Tue, 21 Apr 2026 21:03:13 +0200 Subject: [PATCH] fix unused-parameter warning --- src/hashes/sha1_desc.c | 2 ++ src/hashes/sha2/sha224_desc.c | 4 +++- src/hashes/sha2/sha256_desc.c | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/hashes/sha1_desc.c b/src/hashes/sha1_desc.c index 5f9bcc4d..bc6a7de3 100644 --- a/src/hashes/sha1_desc.c +++ b/src/hashes/sha1_desc.c @@ -132,6 +132,8 @@ int sha1_test(void) int sha1_test_desc(const struct ltc_hash_descriptor *desc, const char *name) { #ifndef LTC_TEST + (void)desc; + (void)name; return CRYPT_NOP; #else static const struct { diff --git a/src/hashes/sha2/sha224_desc.c b/src/hashes/sha2/sha224_desc.c index ccf4b9e8..37d542f8 100644 --- a/src/hashes/sha2/sha224_desc.c +++ b/src/hashes/sha2/sha224_desc.c @@ -121,7 +121,9 @@ int sha224_test(void) int sha224_test_desc(const struct ltc_hash_descriptor *desc, const char *name) { #ifndef LTC_TEST - return CRYPT_NOP; + (void)desc; + (void)name; + return CRYPT_NOP; #else static const struct { const char *msg; diff --git a/src/hashes/sha2/sha256_desc.c b/src/hashes/sha2/sha256_desc.c index 7367ec20..1f60aa88 100644 --- a/src/hashes/sha2/sha256_desc.c +++ b/src/hashes/sha2/sha256_desc.c @@ -132,6 +132,8 @@ int sha256_test(void) int sha256_test_desc(const struct ltc_hash_descriptor *desc, const char *name) { #ifndef LTC_TEST + (void)desc; + (void)name; return CRYPT_NOP; #else static const struct {