Commit 9ecfa002 authored by Ghislain MARY's avatar Ghislain MARY

Really fix build with GCC that does not support -Wsuggest-override option.

parent d37da380
...@@ -40,7 +40,6 @@ if(NOT WIN32) ...@@ -40,7 +40,6 @@ if(NOT WIN32)
-Wall \ -Wall \
-Wcast-align \ -Wcast-align \
-Wconversion \ -Wconversion \
-Werror=suggest-override \
-Wextra \ -Wextra \
-Wfloat-equal \ -Wfloat-equal \
-Winit-self \ -Winit-self \
...@@ -53,7 +52,7 @@ if(NOT WIN32) ...@@ -53,7 +52,7 @@ if(NOT WIN32)
-Wunused \ -Wunused \
") ")
if(SUGGEST_OVERRIDE) if(SUGGEST_OVERRIDE)
set(CUSTOM_FLAGS "${CUSTOM_FLAGS} -Wsuggest-override") set(CUSTOM_FLAGS "${CUSTOM_FLAGS} -Wsuggest-override -Werror=suggest-override")
endif() endif()
endif() endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CUSTOM_FLAGS}") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CUSTOM_FLAGS}")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment