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