https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108159
--- Comment #1 from nightstrike <nightstrike at gmail dot com> --- Andrew pointed out that this is the better fix, and it does indeed work: diff --git a/gcc/testsuite/gcc.dg/format/ms-format2.c b/gcc/testsuite/gcc.dg/format/ms-format2.c index 5c950522a7c..9d21d108642 100644 --- a/gcc/testsuite/gcc.dg/format/ms-format2.c +++ b/gcc/testsuite/gcc.dg/format/ms-format2.c @@ -3,7 +3,7 @@ */ /* Origin: Kai Tietz <kai.ti...@onevision.com> */ /* { dg-do compile { target { *-*-mingw* } } } */ -/* { dg-options "-std=iso9899:1999 -pedantic -Wformat -Wno-pedantic-ms-format" } */ +/* { dg-options "-std=iso9899:1999 -pedantic -Wformat -Wno-pedantic-ms-format -ftrack-macro-expansion=0" } */ #define USE_SYSTEM_FORMATS #include "format.h"