From 86fbe53e70cbebaae3d2bada620106f851933e75 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Thu, 7 Dec 2017 01:52:54 +0100 Subject: [PATCH] build: disable 'conditional expression is constant' warning Visual Studio 2013 often generates this warning when it encounters a `do { ... } while (0)` construct, which is commonly used in preprocessor macros. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9b2909e..9ef363b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,7 +6,7 @@ if(WIN32) endif() if(MSVC) - add_compile_options(/Wall /wd4201 /wd4242 /wd4710 /wd4711 /wd4820) + add_compile_options(/Wall /wd4127 /wd4201 /wd4242 /wd4710 /wd4711 /wd4820) else() add_compile_options(-Wall) endif()