Skip to content

Commit

Permalink
Supress the gnu-zero-variadic-macro-arguments warning on Apple in dis…
Browse files Browse the repository at this point in the history
…playinfo main
  • Loading branch information
VeithMetro authored Nov 14, 2024
1 parent c98907d commit d8fc50e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Source/displayinfo/display_info/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,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 All @@ -146,7 +151,7 @@ void on_operational_state_change(bool is_operational, VARIABLE_IS_NOT_USED void*
Trace("Operational state of the instance %s operational", is_operational ? "is" : "not");
}

void ShowMenu()
void ShowMenu(void)
{
printf("Version %s\n"
"Enter\n"
Expand Down

0 comments on commit d8fc50e

Please sign in to comment.