diff --git a/CMakeLists.txt b/CMakeLists.txt index 9ed212db..77b765c3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -215,7 +215,7 @@ if(MSVC) if(HAVE_PERMISSIVE_SWITCH) set(C_FLAGS ${C_FLAGS} $<$:/permissive->) endif() - set(C_FLAGS ${C_FLAGS} /W4 /w14640 /wd4065 /wd4268 /wd4324 /wd5030) + set(C_FLAGS ${C_FLAGS} /W4 /w14640 /wd4065 /wd4127 /wd4268 /wd4324 /wd5030) # Remove /W3, which is added by default, since we set /W4. Some build # generators with MSVC complain about both /W3 and /W4 being specified. foreach(flag_var CMAKE_C_FLAGS CMAKE_CXX_FLAGS)