From 9ecfa0022bd8ffaffb8ad8970532c47558243447 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Mon, 13 Feb 2017 15:13:16 +0100 Subject: [PATCH] Really fix build with GCC that does not support -Wsuggest-override option. --- linphone-desktop/CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/linphone-desktop/CMakeLists.txt b/linphone-desktop/CMakeLists.txt index 660bd7c76..ec06c4384 100644 --- a/linphone-desktop/CMakeLists.txt +++ b/linphone-desktop/CMakeLists.txt @@ -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}")