From 1dc1eaa45250d51185569a3cba71b974afdecf5a Mon Sep 17 00:00:00 2001 From: Mat M Date: Mon, 5 Dec 2016 07:45:35 -0500 Subject: [PATCH] CMakeLists: Enable more warnings for MSVC (#58) --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3a236353..d72c569e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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