-Wunused-function cleanup
authorjwalch <jeremy.walch@gmail.com>
Fri, 19 Feb 2021 22:58:17 +0000 (17:58 -0500)
committerPauli <ppzgs1@gmail.com>
Sun, 21 Feb 2021 12:04:22 +0000 (22:04 +1000)
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 <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14260)

include/openssl/core_dispatch.h

index 0377424434635807f5517ab26d7275889f50787e..c4e109156fa7cd11c08b3903406ebd269e58204c 100644 (file)
@@ -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;                  \