mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-05 12:30:54 +02:00
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.
This commit is contained in:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user