mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-24 18:08:44 +00:00
Fixed: Use -Wno-...
This commit is contained in:
parent
879cac9d29
commit
3e98e267a2
1 changed files with 4 additions and 2 deletions
|
@ -887,9 +887,11 @@ MACRO(NL_SETUP_BUILD)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
# never display these warnings because they are minor
|
# never display these warnings because they are minor
|
||||||
ADD_PLATFORM_FLAGS("-Wno-unused-parameter -Wno-unused-variable -Wunused-function -Wunused-value")
|
ADD_PLATFORM_FLAGS("-Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-value")
|
||||||
|
|
||||||
IF(CLANG)
|
IF(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "6.0.0")
|
||||||
|
ADD_PLATFORM_FLAGS("-Wno-unused-local-typedefs")
|
||||||
|
ELSEIF(CLANG)
|
||||||
ADD_PLATFORM_FLAGS("-Wno-unused-private-field -Wno-unused-local-typedef")
|
ADD_PLATFORM_FLAGS("-Wno-unused-private-field -Wno-unused-local-typedef")
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue