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
|
# Compiler flags
|
||||||
if (MSVC)
|
if (MSVC)
|
||||||
add_compile_options(/W3
|
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
|
/w34456 # Declaration of 'var' hides previous local declaration
|
||||||
/w34457 # Declaration of 'var' hides function parameter
|
/w34457 # Declaration of 'var' hides function parameter
|
||||||
/w34458 # Declaration of 'var' hides class member
|
/w34458 # Declaration of 'var' hides class member
|
||||||
/w34459 # Declaration of 'var' hides global definition
|
/w34459 # Declaration of 'var' hides global definition
|
||||||
|
/w34946 # Reinterpret-cast between related types
|
||||||
/MP
|
/MP
|
||||||
/Zi
|
/Zi
|
||||||
/Zo
|
/Zo
|
||||||
|
|
Loading…
Reference in a new issue