From: Pauli Date: Thu, 18 Mar 2021 23:46:03 +0000 (+1000) Subject: test: fix coverity 1473609 & 1473610: unchecked return values X-Git-Tag: openssl-3.0.0-alpha14~126 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8c63532002fdab11b437bc8d68012c2b05cf00ea;p=thirdparty%2Fopenssl.git test: fix coverity 1473609 & 1473610: unchecked return values Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/14615) --- diff --git a/test/threadstest.c b/test/threadstest.c index ed46234fc1e..17b348b80c5 100644 --- a/test/threadstest.c +++ b/test/threadstest.c @@ -514,8 +514,8 @@ static void test_multi_load_worker(void) { OSSL_PROVIDER *prov; - TEST_ptr(prov = OSSL_PROVIDER_load(NULL, "default")); - TEST_true(OSSL_PROVIDER_unload(prov)); + (void)TEST_ptr(prov = OSSL_PROVIDER_load(NULL, "default")); + (void)TEST_true(OSSL_PROVIDER_unload(prov)); } static int test_multi_load(void) @@ -524,10 +524,10 @@ static int test_multi_load(void) int i; for (i = 0; i < MULTI_LOAD_THREADS; i++) - TEST_true(run_thread(&threads[i], test_multi_load_worker)); + (void)TEST_true(run_thread(&threads[i], test_multi_load_worker)); for (i = 0; i < MULTI_LOAD_THREADS; i++) - TEST_true(wait_for_thread(threads[i])); + (void)TEST_true(wait_for_thread(threads[i])); return 1; }