Skip to content
Snippets Groups Projects
Commit cfaecaab authored by Johannes Walcher's avatar Johannes Walcher Committed by mujx
Browse files

Limit -Wshadow to non-gcc (#368)

parent 1312c139
No related branches found
No related tags found
No related merge requests found
......@@ -96,13 +96,17 @@ if(NOT MSVC)
-Wall \
-Wextra \
-Werror \
-Wshadow \
-pipe \
-pedantic \
-fsized-deallocation \
-fdiagnostics-color=always \
-Wunreachable-code"
)
if (NOT CMAKE_COMPILER_IS_GNUCXX)
# -Wshadow is buggy and broken in GCC, so do not enable it.
# see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79328
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wshadow")
endif()
endif()
if(NOT (CMAKE_BUILD_TYPE OR CMAKE_CONFIGURATION_TYPES))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment