summaryrefslogtreecommitdiffstats
path: root/configure.py
diff options
context:
space:
mode:
authorFrank Benkstein <frank.benkstein@sap.com>2016-02-04 12:20:58 (GMT)
committerFrank Benkstein <frank.benkstein@sap.com>2016-02-05 13:56:53 (GMT)
commitab652787de83d94af71711ae211c4223958457c4 (patch)
treea896238d18f18e3cc97ece6313c042bd29089b42 /configure.py
parent8028e91a9dc90b51b4da7ded70cc38234ed62451 (diff)
downloadNinja-ab652787de83d94af71711ae211c4223958457c4.zip
Ninja-ab652787de83d94af71711ae211c4223958457c4.tar.gz
Ninja-ab652787de83d94af71711ae211c4223958457c4.tar.bz2
MSVC: disable warning about constant conditional expressions
The standard headers for Visual Studio 2008 generate a warning about constant conditional expressions when compiled with exception support disabled. This is caused by the _CATCH_ALL macro in xstddef which is defined thusly: #ifdef _HAS_EXCEPTIONS #define _CATCH_ALL } catch (...) { #else #define _CATCH_ALL } if (0) { #endif
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.py b/configure.py
index 1c97db7..92d0573 100755
--- a/configure.py
+++ b/configure.py
@@ -302,6 +302,8 @@ if platform.is_msvc():
'/WX', # Warnings as errors.
'/wd4530', '/wd4100', '/wd4706',
'/wd4512', '/wd4800', '/wd4702', '/wd4819',
+ # Disable warnings about constant conditional expressions.
+ '/wd4127',
# Disable warnings about passing "this" during initialization.
'/wd4355',
# Disable warnings about ignored typedef in DbgHelp.h