Merge pull request #5494 from douzzer/20220822-bugprone-macro-parentheses

20220822-bugprone-macro-parentheses
This commit is contained in:
David Garske
2022-08-22 17:16:48 -07:00
committed by GitHub

View File

@@ -1266,13 +1266,13 @@ typedef void (CallbackInfoState)(const WOLFSSL* ssl, int, int);
#ifdef HAVE_EX_DATA
/* Helper macro to log that input arguments should not be used */
#define WOLFSSL_CRYPTO_EX_DATA_IGNORE_PARAMS(a1, a2, a3, a4, a5) \
(void)a1; \
(void)a2; \
(void)a3; \
(void)a4; \
(void)a5; \
(void)(a1); \
(void)(a2); \
(void)(a3); \
(void)(a4); \
(void)(a5); \
do { \
if (a3 != NULL || a4 != NULL || a5 != NULL) { \
if ((a3) != NULL || (a4) != NULL || (a5) != NULL) { \
WOLFSSL_MSG("get_ex_new_index API does not support " \
"new, dup, or free callbacks"); \
} \