[vlc-devel] [PATCH] configure: disable -Wdeprecated-copy for Qt

Alexandre Janniaux ajanni at videolabs.io
Fri Jul 24 23:30:34 CEST 2020


Qt headers are spamming logs as soon as you include the headers on the
current CI Qt version.
---
 configure.ac               | 7 +++++++
 modules/gui/qt/Makefile.am | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 149c7c926b4..4f7a46349ba 100644
--- a/configure.ac
+++ b/configure.ac
@@ -119,6 +119,13 @@ AX_CHECK_COMPILE_FLAG([-Werror=unknown-warning-option], [
   AX_APPEND_FLAG([-Werror=unknown-warning-option], [OBJCFLAGS])
 ])
 
+dnl Some Qt version are generating tons of warning that cannot be
+dnl avoided so mute them...
+AX_CHECK_COMPILE_FLAG([-Wno-deprecated-copy], [
+  VLC_ADD_CXXFLAGS([qt],[-Wno-deprecated-copy])
+])
+
+
 dnl
 dnl  Check the operating system
 dnl
diff --git a/modules/gui/qt/Makefile.am b/modules/gui/qt/Makefile.am
index 41a51154bdf..d40722e120a 100644
--- a/modules/gui/qt/Makefile.am
+++ b/modules/gui/qt/Makefile.am
@@ -736,7 +736,7 @@ gui/qt/resources.cpp: gui/qt/vlc.qrc $(libqt_plugin_la_RES) $(libqt_plugin_la_QM
 endif
 
 vlc_qt_check_SOURCES = gui/qt/vlc-qt-check.cpp
-vlc_qt_check_CXXFLAGS = $(AM_CXXFLAGS) $(QT_CFLAGS) -fPIC
+vlc_qt_check_CXXFLAGS = $(AM_CXXFLAGS) $(QT_CFLAGS) -fPIC $(CXXFLAGS_qt)
 vlc_qt_check_LDADD = $(QT_LIBS)
 
 if ENABLE_QT
-- 
2.27.0



More information about the vlc-devel mailing list