aboutsummaryrefslogtreecommitdiff
path: root/kde-modules
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2018-12-20 20:02:40 +0100
committerDavid Faure <faure@kde.org>2018-12-20 23:08:56 +0100
commite1adaa7ebab1b0de72c82d95bdf568e435713a4e (patch)
treee521bbc6d7a2daf3c98bcdc2c01c8ba65d781eeb /kde-modules
parent3234a509ff7e12df8130cc415e216ecae4395604 (diff)
downloadextra-cmake-modules-e1adaa7ebab1b0de72c82d95bdf568e435713a4e.tar.gz
extra-cmake-modules-e1adaa7ebab1b0de72c82d95bdf568e435713a4e.tar.bz2
Clang: don't enable -Wzero-as-null-pointer-constant on 5.0.0
Summary: The clang compiler in Android NDK r15b, which has version 5.0.300080, warns as follows: warning: unknown warning option '-Wzero-as-null-pointer-constant'; did you mean '-Wint-to-void-pointer-cast'? [-Wunknown-warning-option] Test Plan: Removing the option removes the warning Reviewers: aacid, cgiboudeaux, apol Reviewed By: cgiboudeaux Subscribers: kde-frameworks-devel, kde-buildsystem Tags: #frameworks, #build_system Differential Revision: https://phabricator.kde.org/D17714
Diffstat (limited to 'kde-modules')
-rw-r--r--kde-modules/KDEFrameworkCompilerSettings.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/kde-modules/KDEFrameworkCompilerSettings.cmake b/kde-modules/KDEFrameworkCompilerSettings.cmake
index b191e550..743c51cc 100644
--- a/kde-modules/KDEFrameworkCompilerSettings.cmake
+++ b/kde-modules/KDEFrameworkCompilerSettings.cmake
@@ -72,7 +72,7 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
endif()
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
- if (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS "5.0.0")
+ if (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS "5.0.1")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wzero-as-null-pointer-constant" )
endif()
endif()