[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kdelibs/frameworks] staging/kde4support: Silence intra-use GCC deprecation warnings when building k
From:       Stephen Kelly <steveire () gmail ! com>
Date:       2013-09-23 6:15:32
Message-ID: E1VNzQi-0005xc-Uy () scm ! kde ! org
[Download RAW message or body]

Git commit 6ea7758c731017263c26197c3e6c770abb3c7852 by Stephen Kelly.
Committed on 23/09/2013 at 06:14.
Pushed by skelly into branch 'frameworks'.

Silence intra-use GCC deprecation warnings when building kde4support.

Clang already doesn't warn when deprecated API calls deprecated API.

M  +8    -0    staging/kde4support/CMakeLists.txt

http://commits.kde.org/kdelibs/6ea7758c731017263c26197c3e6c770abb3c7852

diff --git a/staging/kde4support/CMakeLists.txt b/staging/kde4support/CMakeLists.txt
index 356a67a..24ee457 100644
--- a/staging/kde4support/CMakeLists.txt
+++ b/staging/kde4support/CMakeLists.txt
@@ -39,6 +39,14 @@ remove_definitions(-DQT_NO_CAST_FROM_BYTEARRAY)
 remove_definitions(-DQT_NO_CAST_TO_ASCII)
 remove_definitions(-DQT_NO_KEYWORDS)
 
+add_definitions(
+  -DKDE4SUPPORT_DEPRECATED=
+)
+# This one won't be needed when CMake 2.8.13 is depended on.
+add_definitions(
+  -DKDE4SUPPORT_DEPRECATED_EXPORT=KDE4SUPPORT_EXPORT
+)
+
 add_executable(kf5-config kde-config.cpp )
 ecm_mark_nongui_executable(kf5-config)
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic