mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-21 21:58:06 +00:00
Really fix build with GCC that does not support -Wsuggest-override option.
This commit is contained in:
parent
d37da3801c
commit
9ecfa0022b
1 changed files with 1 additions and 2 deletions
|
|
@ -40,7 +40,6 @@ if(NOT WIN32)
|
|||
-Wall \
|
||||
-Wcast-align \
|
||||
-Wconversion \
|
||||
-Werror=suggest-override \
|
||||
-Wextra \
|
||||
-Wfloat-equal \
|
||||
-Winit-self \
|
||||
|
|
@ -53,7 +52,7 @@ if(NOT WIN32)
|
|||
-Wunused \
|
||||
")
|
||||
if(SUGGEST_OVERRIDE)
|
||||
set(CUSTOM_FLAGS "${CUSTOM_FLAGS} -Wsuggest-override")
|
||||
set(CUSTOM_FLAGS "${CUSTOM_FLAGS} -Wsuggest-override -Werror=suggest-override")
|
||||
endif()
|
||||
endif()
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CUSTOM_FLAGS}")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue