From ab77e1d3d4767febe8e5732d9fe52ac367f48ae6 Mon Sep 17 00:00:00 2001 From: Martin Capitanio Date: Mon, 28 Aug 2023 23:08:25 +0200 Subject: [PATCH] THORVG_LOG: --compiler -Werror=empty-body Godot CI: Error: (thirdparty/thorvg/)src/renderer/tvgPaint.h:85:80: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body] 85 | if (refCnt == 255) TVGERR("RENDERER", "Corrupted reference count!"); ... --- src/renderer/tvgCommon.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/tvgCommon.h b/src/renderer/tvgCommon.h index 12b5ab63..f36b4b9b 100644 --- a/src/renderer/tvgCommon.h +++ b/src/renderer/tvgCommon.h @@ -76,8 +76,8 @@ using Size = Point; #define TVGERR(tag, fmt, ...) fprintf(stderr, "%s[E]%s %s" tag "%s (%s %d): %s" fmt "\n", ErrorBgColor, ResetColors, ErrorColor, GreyColor, __FILE__, __LINE__, ResetColors, ##__VA_ARGS__) #define TVGLOG(tag, fmt, ...) fprintf(stdout, "%s[L]%s %s" tag "%s (%s %d): %s" fmt "\n", LogBgColor, ResetColors, LogColor, GreyColor, __FILE__, __LINE__, ResetColors, ##__VA_ARGS__) #else - #define TVGERR(...) - #define TVGLOG(...) + #define TVGERR(...) do {} while(0) + #define TVGLOG(...) do {} while(0) #endif uint16_t THORVG_VERSION_NUMBER();