increase warning level in examples, and suppress two more warnings for msvc

This commit is contained in:
greg
2019-12-31 14:21:24 -05:00
parent 787e16a4f4
commit 5e40c675e1
2 changed files with 5 additions and 2 deletions
+2
View File
@@ -124,6 +124,8 @@ endif()
if (PHMAP_BUILD_EXAMPLES)
if(NOT MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic -Wall -Wextra -Wcast-align -Wcast-qual -Wdisabled-optimization -Winit-self -Wlogical-op -Wmissing-include-dirs -Woverloaded-virtual -Wredundant-decls -Wshadow -Wstrict-null-sentinel -Wswitch-default -Wno-unused -Wno-unknown-warning-option -Wno-gnu-zero-variadic-macro-arguments")
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4")
endif()
set(THREADS_PREFER_PTHREAD_FLAG ON)