mirror of
https://github.com/libtom/libtomcrypt
synced 2026-08-25 20:26:07 -04:00
fix unused-parameter warning
This commit is contained in:
parent
463431edc2
commit
a29e328b07
3 changed files with 7 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue