]> git.sur5r.net Git - cc65/blobdiff - src/common/xsprintf.h
Improve MinGW support.
[cc65] / src / common / xsprintf.h
index 07672c5c457f0b0553b53ffbc7f445174e925e9f..2758e5bc22a2523d76262a29e50953bf2fc2b587 100644 (file)
  * 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