OSSL_DEPRECATED_MESSAGE(#name ENGINE_INFO_MSG) \
static inline ret_type name args \
{ \
- (void)args_names; /* avoid unused parameter warnings */ \
return default_val; /* stub return */ \
}
OSSL_DEPRECATED_MESSAGE(#name ENGINE_INFO_MSG) \
static inline void name args \
{ \
- (void)args_names; /* avoid unused parameter warnings */ \
}
# define ENGINE_VOID_FUNC_NOARGS(name) \
extern "C" {
# endif
+/* Ignore stubs unused arguments */
+# if defined(__GNUC__)
+# pragma GCC diagnostic push
+# pragma GCC diagnostic ignored "-Wunused-value"
+# elif defined(__clang__)
+# pragma clang diagnostic push
+# pragma clang diagnostic ignored "-Wunused-value"
+# endif
+
/*
* These flags are used to control combinations of algorithm (methods) by
* bitwise "OR"ing.
# undef ENGINE_VOID_FUNC
# undef ENGINE_FUNC_NOARGS
# undef ENGINE_VOID_FUNC_NOARGS
+
+# if defined(__GNUC__)
+# pragma GCC diagnostic pop
+# elif defined(__clang__)
+# pragma clang diagnostic pop
+# endif
+
# endif
#endif /* OPENSSL_ENGINE_H */