From: jwalch Date: Fri, 19 Feb 2021 22:58:17 +0000 (-0500) Subject: -Wunused-function cleanup X-Git-Tag: openssl-3.0.0-alpha13~248 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=937a62323b67bfff59c795e90df3acf66bb4579a;p=thirdparty%2Fopenssl.git -Wunused-function cleanup core_dispatch.h seems to be the source of some compiler warnings with legacy applications in alpha12 now that it is implicitly exported via evp.h Reviewed-by: Matt Caswell Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/14260) --- diff --git a/include/openssl/core_dispatch.h b/include/openssl/core_dispatch.h index 03774244346..c4e109156fa 100644 --- a/include/openssl/core_dispatch.h +++ b/include/openssl/core_dispatch.h @@ -44,7 +44,7 @@ extern "C" { */ #define OSSL_CORE_MAKE_FUNC(type,name,args) \ typedef type (OSSL_FUNC_##name##_fn)args; \ - static ossl_inline \ + static ossl_unused ossl_inline \ OSSL_FUNC_##name##_fn *OSSL_FUNC_##name(const OSSL_DISPATCH *opf) \ { \ return (OSSL_FUNC_##name##_fn *)opf->function; \