CMakeLists: Enable more warnings for MSVC (#58)
This commit is contained in:
parent
54d051977f
commit
1dc1eaa452
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue