From f07aa6ad46bc454fe9f54ec17285ca1f5c05e930 Mon Sep 17 00:00:00 2001 From: Mateusz Daniluk <121170681+VeithMetro@users.noreply.github.com> Date: Thu, 14 Nov 2024 12:06:25 +0100 Subject: [PATCH] Disable the gnu-zero-variadic-macro-arguments warning on MacOS /Users/runner/work/ThunderClientLibraries/ThunderClientLibraries/ThunderClientLibraries/Source/deviceinfo/device_info/main.c:54:41: error: token pasting of ',' and __VA_ARGS__ is a GNU extension [-Werror,-Wgnu-zero-variadic-macro-arguments] fprintf(stdout, "<< " fmt "\n", ##__VA_ARGS__); \ ^ --- Source/deviceinfo/device_info/main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/deviceinfo/device_info/main.c b/Source/deviceinfo/device_info/main.c index ca057f7d..eb4bcba9 100644 --- a/Source/deviceinfo/device_info/main.c +++ b/Source/deviceinfo/device_info/main.c @@ -49,6 +49,11 @@ static void toHexString( } } +#if defined(__APPLE__) + #pragma clang diagnostic push + #pragma clang diagnostic ignored "-Wgnu-zero-variadic-macro-arguments" +#endif + #define Trace(fmt, ...) \ do { \ fprintf(stdout, "<< " fmt "\n", ##__VA_ARGS__); \