From bab0ed451a1f7c881fce0286703184ad925cbdbc Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Wed, 6 Apr 2016 22:49:10 -0500 Subject: [PATCH] No more warnings when building re2c with VC++ --- tools/re2c/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/re2c/CMakeLists.txt b/tools/re2c/CMakeLists.txt index fb3198ba7..b362a3b84 100644 --- a/tools/re2c/CMakeLists.txt +++ b/tools/re2c/CMakeLists.txt @@ -6,8 +6,8 @@ include( CheckFunctionExists ) include( CheckTypeSize ) if( MSVC ) - # Runtime type information is required - set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /GR" ) + # Runtime type information is required and don't complain about uint32_t to bool conversions + set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /GR /wd4800" ) endif() set( PACKAGE_NAME re2c )