Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.15.2
-
None
-
Linux e5-2620v2 5.12.3-arch1-1 #1 SMP PREEMPT Wed, 12 May 2021 17:54:18 +0000 x86_64 GNU/Linux
-
-
ab1904363a87656b4ddec77ee9978082a25dadcd (qt/qtbase/dev) 9e3c28ad8352f6ac7104436138414bd7a9052530 (qt/qtbase/6.2) 135ff4f78b179a69f36e548dab787dfbafa317f8 (qt/tqtc-qtbase/5.15)
Description
When compiling this, I get these warnings:
In file included from /usr/include/qt/QtWidgets/qwidget.h:52, from /usr/include/qt/QtWidgets/QWidget:1, from CairoWidget.hpp:5, from CairoWidget.cpp:5: /usr/include/qt/QtWidgets/qsizepolicy.h: In member function 'constexpr Qt::Orientations QSizePolicy::expandingDirections() const': /usr/include/qt/QtWidgets/qsizepolicy.h:137:38: warning: bitwise operation between different enumeration types 'QSizePolicy::Policy' and 'QSizePolicy::PolicyFlag' is deprecated [-Wdeprecated-enum-enum-conversion ] 137 | return ( (verticalPolicy() & ExpandFlag) ? Qt::Vertical : Qt::Orientations() ) | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /usr/include/qt/QtWidgets/qsizepolicy.h:138:38: warning: bitwise operation between different enumeration types 'QSizePolicy::Policy' and 'QSizePolicy::PolicyFlag' is deprecated [-Wdeprecated-enum-enum-conversion ] 138 | | ( (horizontalPolicy() & ExpandFlag) ? Qt::Horizontal : Qt::Orientations() ) ; | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /usr/include/qt/QtWidgets/qwidget.h:52, from /usr/include/qt/QtWidgets/QWidget:1, from CairoWidget.hpp:5, from example3.cpp:5: /usr/include/qt/QtWidgets/qsizepolicy.h: In member function 'constexpr Qt::Orientations QSizePolicy::expandingDirections() const': /usr/include/qt/QtWidgets/qsizepolicy.h:137:38: warning: bitwise operation between different enumeration types 'QSizePolicy::Policy' and 'QSizePolicy::PolicyFlag' is deprecated [-Wdeprecated-enum-enum-conversion ] 137 | return ( (verticalPolicy() & ExpandFlag) ? Qt::Vertical : Qt::Orientations() ) | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /usr/include/qt/QtWidgets/qsizepolicy.h:138:38: warning: bitwise operation between different enumeration types 'QSizePolicy::Policy' and 'QSizePolicy::PolicyFlag' is deprecated [-Wdeprecated-enum-enum-conversion ] 138 | | ( (horizontalPolicy() & ExpandFlag) ? Qt::Horizontal : Qt::Orientations() ) ; | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
I am using gcc-11.1.0.
Attachments
Issue Links
- relates to
-
QTBUG-89977 Qt build on GCC 11
- Closed
For Gerrit Dashboard: QTBUG-93810 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
376862,10 | Fix warnings due to enums in QSizePolicy | dev | qt/qtbase | Status: MERGED | +2 | 0 |
377902,2 | Fix warnings due to enums in QSizePolicy | 6.2 | qt/qtbase | Status: MERGED | +2 | 0 |
377903,4 | Fix warnings due to enums in QSizePolicy | tqtc/lts-5.15 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |