From b7fd9cb0020e6da60ec1efccf365104cefb0ae92 Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Sun, 22 Mar 2026 13:11:08 -0500 Subject: [PATCH] wolfssl/wolfcrypt/error-crypt.h: add __extension__ to __GNUC__&&!__STRICT_ANSI__ variant of wc_debug_trace_error_codes_enabled(), to inhibit false positive "error: ISO C forbids braced-groups within expressions" with -pedantic. --- wolfssl/wolfcrypt/error-crypt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfssl/wolfcrypt/error-crypt.h b/wolfssl/wolfcrypt/error-crypt.h index a22310b452..2207f3b9ac 100644 --- a/wolfssl/wolfcrypt/error-crypt.h +++ b/wolfssl/wolfcrypt/error-crypt.h @@ -355,7 +355,7 @@ WOLFSSL_ABI WOLFSSL_API const char* wc_GetErrorString(int error); #endif #ifndef WC_ERR_TRACE #if defined(__GNUC__) && !defined(__STRICT_ANSI__) - #define WC_ERR_TRACE(label) \ + #define WC_ERR_TRACE(label) __extension__ \ ({ if (wc_debug_trace_error_codes_enabled()) { \ (void)WOLFSSL_DEBUG_PRINTF_FN( \ WOLFSSL_DEBUG_PRINTF_FIRST_ARGS \