[vlc-commits] configure: disable -Wdeprecated-copy for Qt

Alexandre Janniaux git at videolan.org
Tue Aug 18 15:09:17 CEST 2020


vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Fri Jul 24 20:48:28 2020 +0200| [4c037e6d94ad4679da3ddc8f72868bfa9833cea6] | committer: Alexandre Janniaux

configure: disable -Wdeprecated-copy for Qt

Qt headers are spamming logs as soon as you include the headers on the
current CI Qt version.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4c037e6d94ad4679da3ddc8f72868bfa9833cea6
---

 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 149c7c926b..4f7a46349b 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 fa62dfb0f7..90e3efacde 100644
--- a/modules/gui/qt/Makefile.am
+++ b/modules/gui/qt/Makefile.am
@@ -739,7 +739,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



More information about the vlc-commits mailing list