Windows: add -Wno-format to CFLAGS when using MinGW
authorLisandro Dalcin <dalcinl@gmail.com>
Fri, 11 Feb 2011 01:26:19 +0000 (22:26 -0300)
committerLisandro Dalcin <dalcinl@gmail.com>
Fri, 11 Feb 2011 01:26:19 +0000 (22:26 -0300)
runtests.py

index 7db83be15abe5320eeed989ccfb96a344bb89ecf..7d82b4295dc9af1f269fd5d1d9b729c6ef751d10 100644 (file)
@@ -416,6 +416,9 @@ class CythonCompileTestCase(unittest.TestCase):
             build_extension.finalize_options()
             if COMPILER:
                 build_extension.compiler = COMPILER
+            if (sys.platform == 'win32' and
+                build_extension.compiler == 'mingw32'):
+                CFLAGS.append('-Wno-format')
             ext_include_dirs = []
             for match, get_additional_include_dirs in EXT_DEP_INCLUDES:
                 if match(module):