Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.15.0
-
None
Description
https://codereview.qt-project.org/c/qt/qtbase/+/251241 from peppe made a change to enable deprecations by default, beginning with Qt 5.13.0.
This change has no effect for MSVC toolchains, since the related deprecation warning is set to warning level 4 by Qt.
FWIW, here are the warning switches (cl.exe parameters) that I see with Qt 5.15.0 with an empty qmake application (Qt Creator template):
-W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467
... which means that the warning level is set to W3 while warning 4996 (deprecation warnings) is explicitly overridden to be a W4 warning instead of a W3 warning.
This makes the whole handling of deprecations in Qt inconsistent with the MSVC toolchains, and that is IMHO not a good state for Qt 5.15.
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-85227 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
305614,6 | MSVC: Enable deprecation warnings (C4996) | dev | qt/qtbase | Status: NEW | +1 | 0 |