From 87b34325fa93757c9af73316ccf77ca08cf9c8b8 Mon Sep 17 00:00:00 2001 From: Joerg Koenig Date: Sun, 14 Jul 2019 23:42:43 +0200 Subject: Added patch for false-positive on deprecated-copy warnings CC 9 produce a lot of false-positive warnings when comiling with QT. This patch disables this warnings. Change-Id: I24f46a96a049665f91ff7cbe9d484d762456f394 --- SOURCE/qt-5.12.3-gcc9-deprecated-copy.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 SOURCE/qt-5.12.3-gcc9-deprecated-copy.patch 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 { -- cgit v0.12