Ignore C4244, C4305 & C4309

This commit is contained in:
OPNA2608 2022-04-02 18:35:00 +02:00
parent d4fbebf478
commit 43b12c1ca5
1 changed files with 5 additions and 0 deletions

View File

@ -459,6 +459,11 @@ if (NOT MSVC)
else()
add_compile_options("/utf-8")
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)
list(APPEND WARNING_FLAGS /WX)
endif()