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