From: Tomas Mraz Date: Tue, 16 Mar 2021 11:19:38 +0000 (+0100) Subject: core_get_libctx: use assert() instead of ossl_assert() X-Git-Tag: openssl-3.0.0-alpha14~272 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2217d4c9ccde174a66cc4022c7d65614379b2ae7;p=thirdparty%2Fopenssl.git 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) --- 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; }