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

deprecated warnings from qsysinfo.h

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.9
    • 5.9
    • Core: Other
    • None
    • ed928cee1233aee003610d5fadb56bdaeffbd7b2 dca8678efab24417f13eb3c1544b348129472492

    Description

      After https://codereview.qt-project.org/#/c/156822/ in dev branch, we got warnings like:

      Module "qt/qtserialport" (66be7f7263e6d0e3a788dbdbb90e80ccc82851f6) did not compile:
       In file included from /home/qt/work/install/include/QtCore/qglobal.h:1146:0,
                        from /home/qt/work/install/include/QtCore/qchar.h:43,
                        from /home/qt/work/install/include/QtCore/qstring.h:48,
                        from /home/qt/work/qt/qtserialport/src/serialport/qserialportglobal.h:44:
       /home/qt/work/install/include/QtCore/qsysinfo.h:119:104: error: ‘WinVersion’ is deprecated (declared at /home/qt/work/install/include/QtCore/qsysinfo.h:83): Use QOperatingSystemVersion [-Werror=deprecated-declarations]
       /home/qt/work/install/include/QtCore/qsysinfo.h:120:96: error: ‘WinVersion’ is deprecated (declared at /home/qt/work/install/include/QtCore/qsysinfo.h:83): Use QOperatingSystemVersion [-Werror=deprecated-declarations]
       /home/qt/work/install/include/QtCore/qsysinfo.h:200:106: error: ‘MacVersion’ is deprecated (declared at /home/qt/work/install/include/QtCore/qsysinfo.h:127): Use QOperatingSystemVersion [-Werror=deprecated-declarations]
       /home/qt/work/install/include/QtCore/qsysinfo.h:201:92: error: ‘MacVersion’ is deprecated (declared at /home/qt/work/install/include/QtCore/qsysinfo.h:127): Use QOperatingSystemVersion [-Werror=deprecated-declarations]
       In file included from /home/qt/work/install/include/QtCore/qglobal.h:1146:0,
                        from /home/qt/work/install/include/QtCore/qiodevice.h:43,
                        from /home/qt/work/qt/qtserialport/src/serialport/qserialport.h:44:
       /home/qt/work/install/include/QtCore/qsysinfo.h:119:104: error: ‘WinVersion’ is deprecated (declared at /home/qt/work/install/include/QtCore/qsysinfo.h:83): Use QOperatingSystemVersion [-Werror=deprecated-declarations]
       /home/qt/work/install/include/QtCore/qsysinfo.h:120:96: error: ‘WinVersion’ is deprecated (declared at /home/qt/work/install/include/QtCore/qsysinfo.h:83): Use QOperatingSystemVersion [-Werror=deprecated-declarations]
       /home/qt/work/install/include/QtCore/qsysinfo.h:200:106: error: ‘MacVersion’ is deprecated (declared at /home/qt/work/install/include/QtCore/qsysinfo.h:127): Use QOperatingSystemVersion [-Werror=deprecated-declarations]
       /home/qt/work/install/include/QtCore/qsysinfo.h:201:92: error: ‘MacVersion’ is deprecated (declared at /home/qt/work/install/include/QtCore/qsysinfo.h:127): Use QOperatingSystemVersion [-Werror=deprecated-declarations]
       make[2]: *** [.obj/header_qserialportglobal.o] Error 1
       make[2]: *** [.obj/header_qserialport.o] Error 1
       make[1]: *** [sub-serialport-make_first] Error 2
       make: *** [sub-src-make_first] Error 2

      In https://codereview.qt-project.org/#/c/171618/ and many other modules.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            peppe Giuseppe D'Angelo
            liaqi Liang Qi
            Votes:
            1 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes