Enabling -Wshadow [#CLICKHOUSE-2]

This commit is contained in:
Alexey Milovidov 2018-08-26 05:00:11 +03:00
parent e726fa89f8
commit b44343d83d

View File

@ -28,7 +28,7 @@ if (NOT NO_WERROR)
endif ()
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wextra-semi -Wredundant-parens -Wcomma -Winconsistent-missing-destructor-override -Wunused-exception-parameter -Wzero-as-null-pointer-constant")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wextra-semi -Wredundant-parens -Wcomma -Winconsistent-missing-destructor-override -Wunused-exception-parameter -Wzero-as-null-pointer-constant -Wshadow")
endif ()
find_package (Threads)