File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,10 +39,12 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "GNU")
3939 set_source_files_properties (test .cpp PROPERTIES COMPILE_FLAGS -Wno-multichar )
4040elseif (CMAKE_CXX_COMPILER_ID MATCHES "MSVC" )
4141 add_compile_definitions (_CRT_SECURE_NO_WARNINGS )
42- # TODO: bump warning level
43- #add_compile_options(/W4) # Warning Level
44- # TODO: enable warning
42+ add_compile_options (/W4 ) # Warning Level
43+
44+ add_compile_options (/wd4127 ) # warning C4127: conditional expression is constant
45+ add_compile_options (/wd4244 ) # warning C4244: 'x': conversion from 'int' to 'char', possible loss of data
4546 add_compile_options (/wd4267 ) # warning C4267: '...': conversion from 'size_t' to 'unsigned int', possible loss of data
47+ add_compile_options (/wd4706 ) # warning C4706: assignment within conditional expression
4648elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
4749 add_compile_options (-Weverything )
4850
You can’t perform that action at this time.
0 commit comments