Skip to content

Commit

Permalink
Disable the gnu-zero-variadic-macro-arguments warning on MacOS
Browse files Browse the repository at this point in the history
/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__); \
                                        ^
  • Loading branch information
VeithMetro authored Nov 14, 2024
1 parent 380cd17 commit f07aa6a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Source/deviceinfo/device_info/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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__); \
Expand Down

0 comments on commit f07aa6a

Please sign in to comment.