mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 13:08:48 +03:00
Limit -Wshadow to non-gcc (#368)
This commit is contained in:
parent
1312c139cc
commit
cfaecaab17
1 changed files with 5 additions and 1 deletions
|
@ -96,13 +96,17 @@ if(NOT MSVC)
|
||||||
-Wall \
|
-Wall \
|
||||||
-Wextra \
|
-Wextra \
|
||||||
-Werror \
|
-Werror \
|
||||||
-Wshadow \
|
|
||||||
-pipe \
|
-pipe \
|
||||||
-pedantic \
|
-pedantic \
|
||||||
-fsized-deallocation \
|
-fsized-deallocation \
|
||||||
-fdiagnostics-color=always \
|
-fdiagnostics-color=always \
|
||||||
-Wunreachable-code"
|
-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()
|
endif()
|
||||||
|
|
||||||
if(NOT (CMAKE_BUILD_TYPE OR CMAKE_CONFIGURATION_TYPES))
|
if(NOT (CMAKE_BUILD_TYPE OR CMAKE_CONFIGURATION_TYPES))
|
||||||
|
|
Loading…
Reference in a new issue