Fix use of #warning in compilers that don't support them
That becomes an error. So only allow them in GCC-compatible compilers. Fixes: QTBUG-133376 Change-Id: Idd04be795dd9fd2b43affffd08cd7b8a444bbc43 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io> Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> (cherry picked from commit 5da95322bd0ed7bfb94028582a82689124646dbd) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
a4d4ef9df5
commit
904023e2de
@ -4,6 +4,8 @@
|
||||
#ifndef QTDEPRECATIONDEFINITIONS_H
|
||||
#define QTDEPRECATIONDEFINITIONS_H
|
||||
|
||||
#include <QtCore/qcompilerdetection.h>
|
||||
|
||||
#ifndef QT_DISABLE_DEPRECATED_UP_TO
|
||||
# ifdef QT_DISABLE_DEPRECATED_BEFORE // If the deprecated macro is defined, use its value
|
||||
# define QT_DISABLE_DEPRECATED_UP_TO QT_DISABLE_DEPRECATED_BEFORE
|
||||
@ -12,7 +14,7 @@
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if QT_DISABLE_DEPRECATED_UP_TO < @QT_DISABLE_DEPRECATED_UP_TO@
|
||||
#if QT_DISABLE_DEPRECATED_UP_TO < @QT_DISABLE_DEPRECATED_UP_TO@ && defined(Q_CC_GNU)
|
||||
# warning QT_DISABLE_DEPRECATED_UP_TO is set to the version that is lower than the version that \
|
||||
Qt was built with. This may lead to linking issues.
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user