Skip to content

Commit 5175bc1

Browse files
committed
wolfssl/wolfcrypt/error-crypt.h: fix "error: ISO C forbids braced-groups within expressions [-Werror=pedantic]".
1 parent 15dcd1e commit 5175bc1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

wolfssl/wolfcrypt/error-crypt.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ WOLFSSL_ABI WOLFSSL_API const char* wc_GetErrorString(int error);
354354
#endif
355355
#endif
356356
#ifndef WC_ERR_TRACE
357-
#ifdef __GNUC__
357+
#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
358358
#define WC_ERR_TRACE(label) \
359359
({ if (wc_debug_trace_error_codes_enabled()) { \
360360
(void)WOLFSSL_DEBUG_PRINTF_FN( \
@@ -364,7 +364,7 @@ WOLFSSL_ABI WOLFSSL_API const char* wc_GetErrorString(int error);
364364
(void)WOLFSSL_DEBUG_BACKTRACE_RENDER_CLAUSE; } \
365365
(label); \
366366
})
367-
#else /* ! __GNUC__ */
367+
#else /* ! __GNUC__ || __STRICT_ANSI__ */
368368
#define WC_ERR_TRACE(label) \
369369
((void)(wc_debug_trace_error_codes_enabled() && \
370370
WOLFSSL_DEBUG_PRINTF_FN( \
@@ -375,7 +375,7 @@ WOLFSSL_ABI WOLFSSL_API const char* wc_GetErrorString(int error);
375375
WOLFSSL_DEBUG_BACKTRACE_RENDER_CLAUSE), \
376376
(label) \
377377
)
378-
#endif /* ! __GNUC__ */
378+
#endif /* ! __GNUC__ || __STRICT_ANSI__ */
379379
#endif
380380
#include <wolfssl/debug-trace-error-codes.h>
381381
#else

0 commit comments

Comments
 (0)