From: Lisandro Dalcin Date: Fri, 11 Feb 2011 01:26:19 +0000 (-0300) Subject: Windows: add -Wno-format to CFLAGS when using MinGW X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=23360aab862ca2199b0e2ca0f0d334b72a55a3ba;p=cython.git Windows: add -Wno-format to CFLAGS when using MinGW --- diff --git a/runtests.py b/runtests.py index 7db83be1..7d82b429 100644 --- a/runtests.py +++ b/runtests.py @@ -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):