We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3235a65 commit 191f466Copy full SHA for 191f466
CMakeLists.txt
@@ -39,9 +39,8 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "GNU")
39
set_source_files_properties(test.cpp PROPERTIES COMPILE_FLAGS -Wno-multichar)
40
elseif (CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
41
add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
42
- # TODO: bump warning level
43
- #add_compile_options(/W4) # Warning Level
44
- # TODO: enable warning
+ add_compile_options(/W4) # Warning Level
+ add_compile_options(/wd4244) # warning C4244: 'x': conversion from 'int' to 'char', possible loss of data
45
add_compile_options(/wd4267) # warning C4267: '...': conversion from 'size_t' to 'unsigned int', possible loss of data
46
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
47
add_compile_options(-Weverything)
0 commit comments