diff --git a/src/corelib/text/qlocale.cpp b/src/corelib/text/qlocale.cpp index 0ab9a57e0a2..3e92da95963 100644 --- a/src/corelib/text/qlocale.cpp +++ b/src/corelib/text/qlocale.cpp @@ -4,7 +4,7 @@ #include "qglobal.h" -#if (defined(QT_STATIC) || defined(QT_BOOTSTRAPPED)) && defined(Q_CC_GNU_ONLY) && Q_CC_GNU >= 1000 +#if (defined(QT_STATIC) || defined(QT_BOOTSTRAPPED)) && defined(Q_CC_GNU_ONLY) && Q_CC_GNU && __GNUC__ == 10 QT_WARNING_DISABLE_GCC("-Wfree-nonheap-object") // false positive tracking #endif