win32/msvc: disable 64 bit truncation warnings

floating-point
Nicolas Hake 2010-09-29 23:11:12 +02:00
parent c76e339ef6
commit 8b1838b3e7
1 changed files with 2 additions and 0 deletions

View File

@ -106,6 +106,8 @@ if(MSVC_VERSION)
add_definitions(-D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_WARNINGS)
# Disable warning C4244: 'conversion' conversion from 'type1' to 'type2', possible loss of data
list(APPEND OC_CXX_FLAGS "/wd4244")
# Disable warning C4267: 'var' : conversion from 'size_t' to 'type', possible loss of data (64 bit build only)
list(APPEND OC_CXX_FLAGS "/wd4267")
endif()
############################################################################