mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-26 00:08:13 +00:00
Prevent unknown option warnings when building with Clang.
This commit is contained in:
parent
11c9929f10
commit
7ce960223c
1 changed files with 3 additions and 1 deletions
|
|
@ -44,13 +44,15 @@ if(NOT WIN32)
|
|||
-Wfloat-equal \
|
||||
-Winit-self \
|
||||
-Winline \
|
||||
-Wlogical-op \
|
||||
-Wold-style-cast \
|
||||
-Woverloaded-virtual \
|
||||
-Wpointer-arith \
|
||||
-Wuninitialized \
|
||||
-Wunused \
|
||||
")
|
||||
if(NOT CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||
set(CUSTOM_FLAGS "${CUSTOM_FLAGS} -Wlogical-op")
|
||||
endif()
|
||||
if(SUGGEST_OVERRIDE)
|
||||
set(CUSTOM_FLAGS "${CUSTOM_FLAGS} -Wsuggest-override -Werror=suggest-override")
|
||||
endif()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue