summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoerg Koenig <jck@gmx.org>2019-07-14 21:42:43 (GMT)
committerJoerg Koenig <jck@gmx.org>2019-07-14 21:42:43 (GMT)
commit87b34325fa93757c9af73316ccf77ca08cf9c8b8 (patch)
treec156af23ddbd01dacb6e1c55e69186f388b1a8c2
parent4fbe1b426e6f27fbcf0654462eba6fecaec8378f (diff)
downloadQt-87b34325fa93757c9af73316ccf77ca08cf9c8b8.zip
Qt-87b34325fa93757c9af73316ccf77ca08cf9c8b8.tar.gz
Qt-87b34325fa93757c9af73316ccf77ca08cf9c8b8.tar.bz2
Added patch for false-positive on deprecated-copy warningsQT_5_12_3refs/changes/41/8241/1
CC 9 produce a lot of false-positive warnings when comiling with QT. This patch disables this warnings. Change-Id: I24f46a96a049665f91ff7cbe9d484d762456f394
-rw-r--r--SOURCE/qt-5.12.3-gcc9-deprecated-copy.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/SOURCE/qt-5.12.3-gcc9-deprecated-copy.patch b/SOURCE/qt-5.12.3-gcc9-deprecated-copy.patch
new file mode 100644
index 0000000..4c8655d
--- /dev/null
+++ b/SOURCE/qt-5.12.3-gcc9-deprecated-copy.patch
@@ -0,0 +1,12 @@
+diff -ruNb qt-everywhere-src-5.12.3.orig/qtbase/mkspecs/features/qt_common.prf qt-everywhere-src-5.12.3/qtbase/mkspecs/features/qt_common.prf
+--- qt-everywhere-src-5.12.3.orig/qtbase/mkspecs/features/qt_common.prf 2019-04-09 11:51:26.000000000 +0200
++++ qt-everywhere-src-5.12.3/qtbase/mkspecs/features/qt_common.prf 2019-07-14 23:10:24.482141108 +0200
+@@ -97,6 +97,8 @@
+ greaterThan(QT_GCC_MAJOR_VERSION, 8): QMAKE_CXXFLAGS_WARN_ON += -Wno-format-overflow
+ # GCC 9 introduced this
+ greaterThan(QT_GCC_MAJOR_VERSION, 8): QMAKE_CXXFLAGS_WARN_ON += -Wno-init-list-lifetime
++ # GCC 9 has a lot of false positives relating to this, so disable completely
++ greaterThan(QT_GCC_MAJOR_VERSION, 8): QMAKE_CXXFLAGS_WARN_ON += -Wno-deprecated-copy
+ }
+
+ warnings_are_errors:warning_clean {