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

List:       kde-commits
Subject:    [attica] /: Make sure that it compiles with strict compile flags
From:       Laurent Montel <null () kde ! org>
Date:       2018-09-13 5:53:35
Message-ID: E1g0KZL-0002VF-K8 () code ! kde ! org
[Download RAW message or body]

Git commit 7cc5fa085e0c0f0d5bcd10a97813ec26567eaa53 by Laurent Montel.
Committed on 13/09/2018 at 05:53.
Pushed by mlaurent into branch 'master'.

Make sure that it compiles with strict compile flags

M  +5    -0    CMakeLists.txt
M  +1    -0    src/downloaddescription.cpp
M  +1    -0    src/providermanager.cpp

https://commits.kde.org/attica/7cc5fa085e0c0f0d5bcd10a97813ec26567eaa53

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 73fa445..0ba01b7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -21,6 +21,11 @@ include(KDEInstallDirs) # Used to set installation paths
 include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
 include(KDECMakeSettings)
 =

+add_definitions(-DQT_NO_CAST_FROM_ASCII)
+add_definitions(-DQT_NO_CAST_TO_ASCII)
+add_definitions(-DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT)
+add_definitions(-DQT_NO_URL_CAST_FROM_STRING)
+add_definitions(-DQT_USE_QSTRINGBUILDER)
 =

 option(BUILD_QCH "Build API documentation in QCH format (for e.g. Qt Assis=
tant, Qt Creator & KDevelop)" OFF)
 add_feature_info(QCH ${BUILD_QCH} "API documentation in QCH format (for e.=
g. Qt Assistant, Qt Creator & KDevelop)")
diff --git a/src/downloaddescription.cpp b/src/downloaddescription.cpp
index 42790d7..bed2bd9 100644
--- a/src/downloaddescription.cpp
+++ b/src/downloaddescription.cpp
@@ -24,6 +24,7 @@ License along with this library.  If not, see <http://www=
.gnu.org/licenses/>.
 #include "downloaddescription.h"
 =

 #include <QSharedData>
+#include <QStringList>
 =

 namespace Attica
 {
diff --git a/src/providermanager.cpp b/src/providermanager.cpp
index 6af1013..8545702 100644
--- a/src/providermanager.cpp
+++ b/src/providermanager.cpp
@@ -39,6 +39,7 @@
 #include <QNetworkReply>
 #include <QNetworkProxy>
 #include <QXmlStreamReader>
+#include <QSignalMapper>
 =

 #include "platformdependent.h"
 #include "qtplatformdependent_p.h"
[prev in list] [next in list] [prev in thread] [next in thread] 

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