scan-build LLVM-13 fixes: tests/api.c: fix -Wunused-but-set-variable for drive_len in test_wolfSSL_EVP_Cipher_extra() by removing the unused drive_len code.
This commit is contained in:
parent
69bc801c13
commit
e341291d99
@ -39511,7 +39511,6 @@ static int test_wolfSSL_EVP_Cipher_extra(void)
|
||||
|
||||
int *test_drive[] = {test_drive1, test_drive2, test_drive3, NULL};
|
||||
int test_drive_len[100];
|
||||
WC_MAYBE_UNUSED int drive_len;
|
||||
|
||||
int ret = 0;
|
||||
EVP_CIPHER_CTX *evp = NULL;
|
||||
@ -39594,7 +39593,6 @@ static int test_wolfSSL_EVP_Cipher_extra(void)
|
||||
for (i = 0; test_drive[i]; i++) {
|
||||
|
||||
last_val = 0x0f;
|
||||
drive_len = 0;
|
||||
|
||||
AssertIntNE((ret = EVP_CipherInit(evp, NULL, key, iv, 0)), 0);
|
||||
|
||||
@ -39609,7 +39607,6 @@ static int test_wolfSSL_EVP_Cipher_extra(void)
|
||||
binary_dump(outb, outl);
|
||||
AssertIntEQ((ret = check_result(outb, outl)), 0);
|
||||
AssertFalse(outl > ((inl/16+1)*16) && outl > 16);
|
||||
drive_len += outl;
|
||||
}
|
||||
|
||||
ret = EVP_CipherFinal(evp, outb, &outl);
|
||||
|
Loading…
x
Reference in New Issue
Block a user