From 66f1a80f4ec6e32b2aaa20e7b364bc8b498c3d86 Mon Sep 17 00:00:00 2001
From: Oliver Schmidt 
Date: Tue, 4 Mar 2014 01:20:38 +0100
Subject: [PATCH] Moved workaround for MinGW's missing %m support to a central
 place.
---
 src/ca65/error.h      | 6 ++++++
 src/common/xsprintf.h | 4 ----
 2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/ca65/error.h b/src/ca65/error.h
index 776053678..c6fb4f44e 100644
--- a/src/ca65/error.h
+++ b/src/ca65/error.h
@@ -38,6 +38,12 @@
 
 
 
+#if defined( __MINGW32__)
+#  pragma GCC diagnostic ignored "-Wformat"
+#endif
+
+
+
 /* common */
 #include "attrib.h"
 #include "coll.h"
diff --git a/src/common/xsprintf.h b/src/common/xsprintf.h
index 7408177a5..c6ceb723c 100644
--- a/src/common/xsprintf.h
+++ b/src/common/xsprintf.h
@@ -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
 
 
 
-- 
2.39.5