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

#warning preprocessor macro is used in qtdeprecationdefinitions.h

    XMLWordPrintable

Details

    • Windows

    Description

      #warning preprocessor macro is used in qtdeprecationdefinitions.h, but this macro is not supported by MSVC.

      As the result, if MSVC is used and QT_DISABLE_DEPRECATED_BEFORE is set to a value smaller than a certain version, the build process will be stopped with C1021 error instead of being continued with a warning message as follows :

       

      C:\Qt\include\QtCore/qtdeprecationdefinitions.h(16): fatal error C1021: invalid preprocessor command 'warning' 

       

       

      Under MSVC, #pragma should be used instead of #warning.

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            hitoshiito Hitoshi Ito
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change