QLocale: update the disabling of -Wfree-nonheap-object to GCC 10 only

Testing with 11 and 12 does not produce the warning.

Change-Id: I3d74c753055744deb8acfffd17243f3bd60e6855
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
This commit is contained in:
Thiago Macieira 2022-11-03 19:01:28 -07:00
parent 52dcd47850
commit e76bcaa203

View File

@ -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