Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
6.8.1
-
-
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
For Gerrit Dashboard: QTBUG-133376 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
621639,2 | Fix use of #warning in compilers that don't support them | dev | qt/qtbase | Status: MERGED | +2 | 0 |
624228,2 | Fix use of #warning in compilers that don't support them | 6.9 | qt/qtbase | Status: MERGED | +2 | 0 |