Remove warnings

This commit is contained in:
Zhi Guan
2022-10-13 17:45:06 +08:00
parent 53cb1fbee0
commit 5e2381f122
19 changed files with 43 additions and 44 deletions

View File

@@ -141,7 +141,6 @@ static int test_sm3(void)
};
int err = 0;
char *p;
uint8_t testbuf[sizeof(testhex)/2 + 1000];
uint8_t dgstbuf[32];
size_t testbuflen, dgstbuflen;
@@ -156,7 +155,7 @@ static int test_sm3(void)
if (memcmp(dgstbuf, dgst, sizeof(dgst)) != 0) {
int n;
fprintf(stderr, "sm3 test %lu failed\n", i+1);
fprintf(stderr, "sm3 test %zu failed\n", i+1);
fprintf(stderr, "error calculating SM3 on %s\n", testhex[i]);
fprintf(stderr, " digest(corret) = ");
for (n = 0; n < sizeof(dgst); n++) {