We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be254e7 commit 66c86b1Copy full SHA for 66c86b1
CMakeLists.txt
@@ -642,6 +642,9 @@ endif()
642
# add extra warning flags for gccish compilers
643
if (HAVE_COMPILER_GNU_COMPAT)
644
set (SRT_GCC_WARN "-Wall -Wextra")
645
+ if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0 AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
646
+ set (SRT_GCC_WARN "${SRT_GCC_WARN} -Wshadow=local")
647
+ endif()
648
else()
649
# cpp debugging on Windows :D
650
#set (SRT_GCC_WARN "/showIncludes")
0 commit comments