From 2217d4c9ccde174a66cc4022c7d65614379b2ae7 Mon Sep 17 00:00:00 2001 From: Tomas Mraz Date: Tue, 16 Mar 2021 12:19:38 +0100 Subject: [PATCH] core_get_libctx: use assert() instead of ossl_assert() Using ossl_assert makes the build fail with --strict-warnings because the ossl_assert is declared with warn_unused_result. Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/14571) --- crypto/provider_core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crypto/provider_core.c b/crypto/provider_core.c index 64bed25e047..cd295809be4 100644 --- a/crypto/provider_core.c +++ b/crypto/provider_core.c @@ -7,6 +7,7 @@ * https://www.openssl.org/source/license.html */ +#include #include #include #include @@ -1118,7 +1119,7 @@ static OPENSSL_CORE_CTX *core_get_libctx(const OSSL_CORE_HANDLE *handle) * that does not apply here. Here |prov| == NULL can happen only in * case of a coding error. */ - (void)ossl_assert(prov != NULL); + assert(prov != NULL); return (OPENSSL_CORE_CTX *)prov->libctx; } -- 2.47.3