Protect QT_ENABLE_STRICT_MODE_UP_TO against predefined individual opt-outs [6.9]
Since some of the Qt opt-outs are defined project-wide by the buildsystem these days (e.g. QT_NO_QSNPRINF, ...), a module that attempts to use QT_ENABLE_STRICT_MODE_UP_TO will hit warnings regarding re-definition of these macros (definition on the compiler command line, redefinition by qtconfigmacros.h). To fix, guard the #define QT_NO_FOO's with #ifndef QT_NO_FOO. Amends bd7d54249e3f2b6a9dd6b759c892d7c97d26c0aa (which was also picked to 6.8). Pick-to: 6.9 6.8 Change-Id: I88276c9ed01edde1495105cf5bd1e07b1fd244f4 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
This commit is contained in:
parent
0f416cbaab
commit
752de4a0aa
@ -227,7 +227,9 @@ namespace QT_NAMESPACE {}
|
||||
#endif // 6.8.0
|
||||
|
||||
#if QT_ENABLE_STRICT_MODE_UP_TO >= QT_VERSION_CHECK(6, 9, 0)
|
||||
# ifndef QT_NO_QSNPRINTF
|
||||
# define QT_NO_QSNPRINTF
|
||||
# endif
|
||||
#endif // 6.9.0
|
||||
#endif // QT_ENABLE_STRICT_MODE_UP_TO
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user