fix unused-parameter warning

This commit is contained in:
Karel Miko 2026-04-21 21:03:13 +02:00 committed by Steffen Jaeckel
parent 463431edc2
commit a29e328b07
3 changed files with 7 additions and 1 deletions

View file

@ -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 {

View file

@ -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;

View file

@ -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 {