Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/Endian.cpp7
-rw-r--r--tests/modeltest.cpp5
2 files changed, 9 insertions, 3 deletions
diff --git a/src/core/Endian.cpp b/src/core/Endian.cpp
index 177c3a7fb..afe5ce5e9 100644
--- a/src/core/Endian.cpp
+++ b/src/core/Endian.cpp
@@ -17,7 +17,14 @@
#include "Endian.h"
+#if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 3))
+#pragma GCC push_options
+#pragma GCC diagnostic ignored "-Wold-style-cast"
+#endif
#include <QtCore/QtEndian>
+#if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 3))
+#pragma GCC pop_options
+#endif
#include <QtCore/QIODevice>
namespace Endian
diff --git a/tests/modeltest.cpp b/tests/modeltest.cpp
index ccb5afaad..9e173b40f 100644
--- a/tests/modeltest.cpp
+++ b/tests/modeltest.cpp
@@ -40,11 +40,10 @@
****************************************************************************/
-#include <QtGui/QtGui>
-
#include "modeltest.h"
-#include <QtTest/QtTest>
+#include <QtCore/QDebug>
+#include <QtTest/QTest>
Q_DECLARE_METATYPE ( QModelIndex )