From 190f46ef23a1e0db31cb914c468b2bde30e3fe01 Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Sat, 22 Mar 2025 01:22:19 -0500 Subject: [PATCH] wolfcrypt/test/test.c: fix -Wdeclaration-after-statement in sm3_test(). --- wolfcrypt/test/test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index 51f695441..91f49e694 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -5911,12 +5911,13 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t sm3_test(void) byte hashGet[WC_SM3_DIGEST_SIZE]; byte hashCopy[WC_SM3_DIGEST_SIZE]; wc_test_ret_t ret = 0; - WOLFSSL_ENTER("sm3_test"); testVector a, b, c; testVector test_sm3[3]; int times = sizeof(test_sm3) / sizeof(struct testVector), i; + WOLFSSL_ENTER("sm3_test"); + a.input = ""; a.output = "\x1a\xb2\x1d\x83\x55\xcf\xa1\x7f\x8e\x61\x19\x48\x31\xe8\x1a" "\x8f\x22\xbe\xc8\xc7\x28\xfe\xfb\x74\x7e\xd0\x35\xeb\x50\x82"