ElvishArtisan / rivendell

A full-featured radio automation system targeted for use in professional broadcast and media environments
209 stars 64 forks source link

QT Deprecation Warnings QTFlags Initialization #992

Open flipmcf opened 4 days ago

flipmcf commented 4 days ago

Getting these during compilation:

warning: ‘constexpr QFlags<T>::QFlags(QFlags<T>::Zero) [with Enum = Qt::WindowType; QFlags<T>::Zero = int QFlags<Qt::WindowType>::Private::*]’ is deprecated: Use default constructor instead [-Wdeprecated-declarations]

Fix it before the next QT library update so future builds don't break

flipmcf commented 4 days ago

990

flipmcf commented 4 days ago

Found another... rdlibrary mainwindow.h

moc_mainwindow.cpp:10:
mainwindow.h:30:67: warning: ‘constexpr QFlags<T>::QFlags(QFlags<T>::Zero) [with Enum = Qt::WindowType; QFlags<T>::Zero = int QFlags<Qt::WindowType>::Private::*]’ is deprecated: Use default constructor instead [-Wdeprecated-declarations]
   30 |   MainWindow(const QString &cmdname,RDConfig *c,Qt::WindowFlags f=0);
      |                                                                   ^
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:1299,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/qchar.h:43,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:49,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/qdir.h:43,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/QDir:1,
                 from ../lib/rdmainwindow.h:26,
                 from mainwindow.h:24,
                 from moc_mainwindow.cpp:10:
flipmcf commented 4 days ago

rdframe.cpp deckmon.cpp vbox.h