Apply -Wno-inconsistent-missing-override for all compilers
Summary: Default CXX flags are out of our control. Whether they're set by the compiler or the user or ECM. We currently disable for clang. This patch also disables this warning for other compilers. This might not be anyone's first preference, but we're at an impasse there. Test Plan: Compiled Reviewers: #kwin, graesslin Reviewed By: #kwin, graesslin Subscribers: zzag, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D18488
This commit is contained in:
parent
4f69dc6833
commit
a088a7b1a4
1 changed files with 3 additions and 3 deletions
|
@ -53,9 +53,9 @@ add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0 -DQT_USE_QSTRINGBUILDER)
|
|||
set(CMAKE_CXX_STANDARD 14)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-inconsistent-missing-override")
|
||||
endif()
|
||||
# This is a workaround/compromise for a Kwin specific policy of not applying the relevant override fix.
|
||||
# See thread in D18167.
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-inconsistent-missing-override -Wno-suggest-override")
|
||||
|
||||
find_package(Qt5Multimedia QUIET)
|
||||
set_package_properties(Qt5Multimedia PROPERTIES
|
||||
|
|
Loading…
Reference in a new issue