Separate GNU & Clang disabled warnings
This commit is contained in:
parent
49a8d7f24c
commit
2c1d486068
1 changed files with 9 additions and 1 deletions
|
|
@ -13,7 +13,15 @@ endif()
|
||||||
|
|
||||||
set(PSEMEK_CXX_FLAGS)
|
set(PSEMEK_CXX_FLAGS)
|
||||||
if((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") OR (CMAKE_CXX_COMPILER_ID STREQUAL "Clang"))
|
if((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") OR (CMAKE_CXX_COMPILER_ID STREQUAL "Clang"))
|
||||||
list(APPEND PSEMEK_CXX_FLAGS -Wall -Werror -Wextra -pedantic -Wno-narrowing -Wno-sign-compare -Wno-maybe-uninitialized)
|
list(APPEND PSEMEK_CXX_FLAGS -Wall -Werror -Wextra -pedantic -Wno-narrowing -Wno-sign-compare)
|
||||||
|
endif()
|
||||||
|
if((CMAKE_CXX_COMPILER_ID STREQUAL "GNU"))
|
||||||
|
# gcc gives way too many false positives on -Wmaybe-uninitialized
|
||||||
|
list(APPEND PSEMEK_CXX_FLAGS -Wno-maybe-uninitialized)
|
||||||
|
endif()
|
||||||
|
if((CMAKE_CXX_COMPILER_ID STREQUAL "Clang"))
|
||||||
|
# gives false-positive on audio::engine::impl::~impl
|
||||||
|
list(APPEND PSEMEK_CXX_FLAGS -Wno-dtor-name)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
option(PSEMEK_ASAN "Turn on Address Sanitizer" OFF)
|
option(PSEMEK_ASAN "Turn on Address Sanitizer" OFF)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue