Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,14 @@ elseif(${CMAKE_CXX_COMPILER_ID} MATCHES "Clang" AND NOT MSVC)
endif()
endif()
elseif(MSVC)
# A unary minus operator was applied to an unsigned type, resulting in an unsigned result.
add_compile_options(/w14146)
# A negative integral constant converted to unsigned type, resulting in a possibly meaningless result.
add_compile_options(/w14308)
# Use of an uninitialized local variable.
add_compile_options(/w14700)
# Use of a potentially uninitialized local pointer variable.
add_compile_options(/w14703)
if(NOT ENABLE_RTTI)
add_compile_options(/GR-) # Disable RTTI
endif()
Expand Down