Skip to content

Commit 794425c

Browse files
authored
Merge pull request #6577 from SparkiDev/sm_update_1
SM tests: void in function declaration that is its prototype
2 parents 652c549 + 7a73c9a commit 794425c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

wolfcrypt/test/test.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27079,7 +27079,7 @@ static wc_test_ret_t ecc_test_custom_curves(WC_RNG* rng)
2707927079
#define ecc_oid_sm2p256v1_sz CODED_SM2P256V1_SZ
2708027080
#endif /* WOLFSSL_SM2 */
2708127081
#define ECC_SM2P256V1_TEST 102
27082-
static int test_sm2_verify_caseA2()
27082+
static int test_sm2_verify_caseA2(void)
2708327083
{
2708427084
ecc_key key;
2708527085
int ret, res;
@@ -27163,7 +27163,7 @@ static int test_sm2_verify_caseA2()
2716327163
}
2716427164
#endif /* WOLFSSL_PUBLIC_MP && WOLFSSL_CUSTOM_CURVES */
2716527165

27166-
static int test_sm2_verify_case()
27166+
static int test_sm2_verify_case(void)
2716727167
{
2716827168
ecc_key key;
2716927169
int ret, res;
@@ -27527,7 +27527,7 @@ static int ecc_sm2_test_curve(WC_RNG* rng, int testVerifyCount)
2752727527
}
2752827528
#endif /* HAVE_ECC_VERIFY */
2752927529

27530-
static int test_sm2_create_digest()
27530+
static int test_sm2_create_digest(void)
2753127531
{
2753227532
const byte msg[] = "message to sign";
2753327533
const byte id[] = "0123456789";
@@ -27581,7 +27581,7 @@ static int test_sm2_create_digest()
2758127581
return ret;
2758227582
}
2758327583

27584-
static int test_sm2_verify()
27584+
static int test_sm2_verify(void)
2758527585
{
2758627586
int ret = 0;
2758727587

0 commit comments

Comments
 (0)