From 0e13362361661d89c56eef59274a03f13cad5433 Mon Sep 17 00:00:00 2001 From: Mark Marshall Date: Wed, 2 Sep 2020 14:30:18 +0200 Subject: [PATCH] Switch on -Wshadow --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b0738c2..dcb7c68 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -116,7 +116,7 @@ if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") target_compile_options(nlohmann_json_schema_validator PRIVATE - -Wall -Wextra) + -Wall -Wextra -Wshadow) endif() if(BUILD_SHARED_LIBS)