Commit 7ce96022 authored by Ghislain MARY's avatar Ghislain MARY

Prevent unknown option warnings when building with Clang.

parent 11c9929f
...@@ -44,13 +44,15 @@ if(NOT WIN32) ...@@ -44,13 +44,15 @@ if(NOT WIN32)
-Wfloat-equal \ -Wfloat-equal \
-Winit-self \ -Winit-self \
-Winline \ -Winline \
-Wlogical-op \
-Wold-style-cast \ -Wold-style-cast \
-Woverloaded-virtual \ -Woverloaded-virtual \
-Wpointer-arith \ -Wpointer-arith \
-Wuninitialized \ -Wuninitialized \
-Wunused \ -Wunused \
") ")
if(NOT CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
set(CUSTOM_FLAGS "${CUSTOM_FLAGS} -Wlogical-op")
endif()
if(SUGGEST_OVERRIDE) if(SUGGEST_OVERRIDE)
set(CUSTOM_FLAGS "${CUSTOM_FLAGS} -Wsuggest-override -Werror=suggest-override") set(CUSTOM_FLAGS "${CUSTOM_FLAGS} -Wsuggest-override -Werror=suggest-override")
endif() endif()
......
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