Switch on -Wshadow
This commit is contained in:
parent
4dfb6bdb62
commit
0e13362361
@ -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)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user