From 8b1838b3e7dd9ed47c2ac93fb20687ba15e36a9b Mon Sep 17 00:00:00 2001 From: Nicolas Hake Date: Wed, 29 Sep 2010 23:11:12 +0200 Subject: [PATCH] win32/msvc: disable 64 bit truncation warnings --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4230a94c4..21f178c05 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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() ############################################################################