CMakeLists: Enable more warnings for MSVC (#58)

This commit is contained in:
Mat M 2016-12-05 07:45:35 -05:00 committed by Merry
parent 54d051977f
commit 1dc1eaa452

View file

@ -27,10 +27,13 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/CMakeModules)
# Compiler flags
if (MSVC)
add_compile_options(/W3
/w34263 # Non-virtual member function hides base class virtual function
/w34265 # Class has virtual functions, but destructor is not virtual
/w34456 # Declaration of 'var' hides previous local declaration
/w34457 # Declaration of 'var' hides function parameter
/w34458 # Declaration of 'var' hides class member
/w34459 # Declaration of 'var' hides global definition
/w34946 # Reinterpret-cast between related types
/MP
/Zi
/Zo