Switch on -Wshadow

This commit is contained in:
Mark Marshall 2020-09-02 14:30:18 +02:00 committed by Patrick Boettcher
parent 1ad9a10b0b
commit b10710d960

View File

@ -116,7 +116,7 @@ if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" OR
"${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") "${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
target_compile_options(nlohmann_json_schema_validator target_compile_options(nlohmann_json_schema_validator
PRIVATE PRIVATE
-Wall -Wextra) -Wall -Wextra -Wshadow)
endif() endif()
if(BUILD_SHARED_LIBS) if(BUILD_SHARED_LIBS)