File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments