Ignore C4244, C4305 & C4309
This commit is contained in:
parent
d4fbebf478
commit
43b12c1ca5
|
@ -459,6 +459,11 @@ if (NOT MSVC)
|
||||||
else()
|
else()
|
||||||
add_compile_options("/utf-8")
|
add_compile_options("/utf-8")
|
||||||
set(WARNING_FLAGS /W2 /D_CRT_SECURE_NO_WARNINGS)
|
set(WARNING_FLAGS /W2 /D_CRT_SECURE_NO_WARNINGS)
|
||||||
|
list(APPEND WARNING_FLAGS
|
||||||
|
/wd4244 # implicit type conversions
|
||||||
|
/wd4305 # truncations
|
||||||
|
/wd4309 # truncations of constant values
|
||||||
|
)
|
||||||
if (WARNINGS_ARE_ERRORS)
|
if (WARNINGS_ARE_ERRORS)
|
||||||
list(APPEND WARNING_FLAGS /WX)
|
list(APPEND WARNING_FLAGS /WX)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in a new issue