Skip to content

Commit ff52a70

Browse files
authored
Merge pull request #734 from libtom/pr/fix-unused-parameter
fix unused-parameter warning
2 parents 463431e + a29e328 commit ff52a70

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

‎src/hashes/sha1_desc.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ int sha1_test(void)
132132
int sha1_test_desc(const struct ltc_hash_descriptor *desc, const char *name)
133133
{
134134
#ifndef LTC_TEST
135+
(void)desc;
136+
(void)name;
135137
return CRYPT_NOP;
136138
#else
137139
static const struct {

‎src/hashes/sha2/sha224_desc.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@ int sha224_test(void)
121121
int sha224_test_desc(const struct ltc_hash_descriptor *desc, const char *name)
122122
{
123123
#ifndef LTC_TEST
124-
return CRYPT_NOP;
124+
(void)desc;
125+
(void)name;
126+
return CRYPT_NOP;
125127
#else
126128
static const struct {
127129
const char *msg;

‎src/hashes/sha2/sha256_desc.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ int sha256_test(void)
132132
int sha256_test_desc(const struct ltc_hash_descriptor *desc, const char *name)
133133
{
134134
#ifndef LTC_TEST
135+
(void)desc;
136+
(void)name;
135137
return CRYPT_NOP;
136138
#else
137139
static const struct {

0 commit comments

Comments
 (0)