X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fcommon%2Fxsprintf.h;h=2758e5bc22a2523d76262a29e50953bf2fc2b587;hb=50c4fd1c4ce740c8e9ae1e416dc7daa3dbdb5e82;hp=07672c5c457f0b0553b53ffbc7f445174e925e9f;hpb=fcc95f4c1c42c98fedcd643c4174594deaf08e6e;p=cc65 diff --git a/src/common/xsprintf.h b/src/common/xsprintf.h index 07672c5c4..2758e5bc2 100644 --- a/src/common/xsprintf.h +++ b/src/common/xsprintf.h @@ -41,7 +41,11 @@ * and precision to such a StrBuf, but *not* using %p would bring up a warning * about a wrong argument type each time. Maybe gcc will one day allow custom * format specifiers and we can change this ... + * However this cheat doesn't work with MinGW as there's no support for %m :-( */ +#if defined( __MINGW32__) +# pragma GCC diagnostic ignored "-Wformat" +#endif