Skip to content

Commit 7fbfdad

Browse files
committed
LTC_UNUSED_PARAM
1 parent 6f26804 commit 7fbfdad

6 files changed

Lines changed: 12 additions & 4 deletions

File tree

src/hashes/sha2/sha224_desc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ int sha224_test(void)
124124
int sha224_test_desc(const struct ltc_hash_descriptor *desc, const char *name)
125125
{
126126
#ifndef LTC_TEST
127-
(void)desc;
128-
(void)name;
127+
LTC_UNUSED_PARAM(desc);
128+
LTC_UNUSED_PARAM(name);
129129
return CRYPT_NOP;
130130
#else
131131
static const struct {

src/hashes/sha2/sha256_desc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ int sha256_test(void)
135135
int sha256_test_desc(const struct ltc_hash_descriptor *desc, const char *name)
136136
{
137137
#ifndef LTC_TEST
138-
(void)desc;
139-
(void)name;
138+
LTC_UNUSED_PARAM(desc);
139+
LTC_UNUSED_PARAM(name);
140140
return CRYPT_NOP;
141141
#else
142142
static const struct {

src/hashes/sha2/sha384_desc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ int sha384_test(void)
154154
int sha384_test_desc(const struct ltc_hash_descriptor *desc, const char *name)
155155
{
156156
#ifndef LTC_TEST
157+
LTC_UNUSED_PARAM(desc);
158+
LTC_UNUSED_PARAM(name);
157159
return CRYPT_NOP;
158160
#else
159161
static const struct {

src/hashes/sha2/sha512_224_desc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ int sha512_224_test(void)
154154
int sha512_224_test_desc(const struct ltc_hash_descriptor *desc, const char *name)
155155
{
156156
#ifndef LTC_TEST
157+
LTC_UNUSED_PARAM(desc);
158+
LTC_UNUSED_PARAM(name);
157159
return CRYPT_NOP;
158160
#else
159161
static const struct {

src/hashes/sha2/sha512_256_desc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ int sha512_256_test(void)
154154
int sha512_256_test_desc(const struct ltc_hash_descriptor *desc, const char *name)
155155
{
156156
#ifndef LTC_TEST
157+
LTC_UNUSED_PARAM(desc);
158+
LTC_UNUSED_PARAM(name);
157159
return CRYPT_NOP;
158160
#else
159161
static const struct {

src/hashes/sha2/sha512_desc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ int sha512_test(void)
171171
int sha512_test_desc(const struct ltc_hash_descriptor *desc, const char *name)
172172
{
173173
#ifndef LTC_TEST
174+
LTC_UNUSED_PARAM(desc);
175+
LTC_UNUSED_PARAM(name);
174176
return CRYPT_NOP;
175177
#else
176178
static const struct {

0 commit comments

Comments
 (0)