Disable MSVC warning 4127
"conditional expression is constant", which C++14 can't do anything about since 'if constexpr' was added in C++17. The checks are necessary since it's dealing with a templatized type, or a compile-time non-macro constant for the target system's endian order.
This commit is contained in:
parent
e3168c9112
commit
35348869a9
@ -215,7 +215,7 @@ if(MSVC)
|
||||
if(HAVE_PERMISSIVE_SWITCH)
|
||||
set(C_FLAGS ${C_FLAGS} $<$<COMPILE_LANGUAGE:CXX>:/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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user