forked from wolfSSL/wolfssl
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:
@ -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[] = {test_drive1, test_drive2, test_drive3, NULL};
|
||||||
int test_drive_len[100];
|
int test_drive_len[100];
|
||||||
WC_MAYBE_UNUSED int drive_len;
|
|
||||||
|
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
EVP_CIPHER_CTX *evp = NULL;
|
EVP_CIPHER_CTX *evp = NULL;
|
||||||
@ -39594,7 +39593,6 @@ static int test_wolfSSL_EVP_Cipher_extra(void)
|
|||||||
for (i = 0; test_drive[i]; i++) {
|
for (i = 0; test_drive[i]; i++) {
|
||||||
|
|
||||||
last_val = 0x0f;
|
last_val = 0x0f;
|
||||||
drive_len = 0;
|
|
||||||
|
|
||||||
AssertIntNE((ret = EVP_CipherInit(evp, NULL, key, iv, 0)), 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);
|
binary_dump(outb, outl);
|
||||||
AssertIntEQ((ret = check_result(outb, outl)), 0);
|
AssertIntEQ((ret = check_result(outb, outl)), 0);
|
||||||
AssertFalse(outl > ((inl/16+1)*16) && outl > 16);
|
AssertFalse(outl > ((inl/16+1)*16) && outl > 16);
|
||||||
drive_len += outl;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = EVP_CipherFinal(evp, outb, &outl);
|
ret = EVP_CipherFinal(evp, outb, &outl);
|
||||||
|
Reference in New Issue
Block a user