diff options
-rw-r--r-- | SOURCE/qt-5.12.3-gcc9-deprecated-copy.patch | 12 |
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 { |