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

#warning preprocessor macro is used in qtdeprecationdefinitions.h

    XMLWordPrintable

Details

    • Windows
    • 5da95322b (dev), 904023e2d (6.9)

    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

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes