From 23360aab862ca2199b0e2ca0f0d334b72a55a3ba Mon Sep 17 00:00:00 2001 From: Lisandro Dalcin Date: Thu, 10 Feb 2011 22:26:19 -0300 Subject: [PATCH] Windows: add -Wno-format to CFLAGS when using MinGW --- runtests.py | 3 +++ 1 file changed, 3 insertions(+) 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): -- 2.26.2