Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QT Deprecation Warnings QTFlags Initialization #992

Open
flipmcf opened this issue Nov 21, 2024 · 3 comments
Open

QT Deprecation Warnings QTFlags Initialization #992

flipmcf opened this issue Nov 21, 2024 · 3 comments

Comments

@flipmcf
Copy link

flipmcf commented Nov 21, 2024

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
Copy link
Author

flipmcf commented Nov 21, 2024

#990

@flipmcf
Copy link
Author

flipmcf commented Nov 21, 2024

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 added a commit to flipmcf/rivendell that referenced this issue Nov 21, 2024
@flipmcf flipmcf changed the title QT Deprecation Warnings QT Deprecation Warnings QTFlags Initialization Nov 21, 2024
@flipmcf
Copy link
Author

flipmcf commented Nov 21, 2024

rdframe.cpp
deckmon.cpp
vbox.h

flipmcf added a commit to flipmcf/rivendell that referenced this issue Nov 22, 2024
flipmcf added a commit to flipmcf/rivendell that referenced this issue Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant