Moved workaround for MinGW's missing %m support to a central place.

This commit is contained in:
Oliver Schmidt 2014-03-04 01:20:38 +01:00
parent 4185caf855
commit 66f1a80f4e
2 changed files with 6 additions and 4 deletions

View File

@ -38,6 +38,12 @@
#if defined( __MINGW32__)
# pragma GCC diagnostic ignored "-Wformat"
#endif
/* common */
#include "attrib.h"
#include "coll.h"

View File

@ -41,11 +41,7 @@
* 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