Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-85227

Qt's deprecation warnings are not on by default for MSVC

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.15.0
    • Build System
    • 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

        For Gerrit Dashboard: QTBUG-85227
        # Subject Branch Project Status CR V

        Activity

          People

            kkohne Kai Köhne
            markus.maier Markus Haberlander
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change