From 1063090e385222e4ec5be68fabdc4c7355933dfc Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Mon, 22 Aug 2022 16:32:58 -0500 Subject: [PATCH] fix bugprone-macro-parentheses in WOLFSSL_CRYPTO_EX_DATA_IGNORE_PARAMS() added in 8b2fcd0643. --- wolfssl/ssl.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/wolfssl/ssl.h b/wolfssl/ssl.h index d51f46d07..863344ead 100644 --- a/wolfssl/ssl.h +++ b/wolfssl/ssl.h @@ -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"); \ } \