Skip to content

Commit b7fd9cb

Browse files
committed
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.
1 parent 20f640a commit b7fd9cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wolfssl/wolfcrypt/error-crypt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ WOLFSSL_ABI WOLFSSL_API const char* wc_GetErrorString(int error);
355355
#endif
356356
#ifndef WC_ERR_TRACE
357357
#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
358-
#define WC_ERR_TRACE(label) \
358+
#define WC_ERR_TRACE(label) __extension__ \
359359
({ if (wc_debug_trace_error_codes_enabled()) { \
360360
(void)WOLFSSL_DEBUG_PRINTF_FN( \
361361
WOLFSSL_DEBUG_PRINTF_FIRST_ARGS \

0 commit comments

Comments
 (0)