diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2021-12-07 13:24:14 +0000 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2021-12-08 12:13:23 +0000 |
commit | d8b943849fc458029b78029a290beda4d535e8b7 (patch) | |
tree | 88f65e52dcdacb52184c719d33e1a74b057e21dd | |
parent | 64449abe17e34e02dcaa9791203e3a5065c9d1a7 (diff) |
Revert "Compile: Work around false positive on gcc >= 900"
This reverts commit d62e9d3c5bd9d3aae5f4b72ed0688dcbd02134a7.
Reason for revert: The -Wstringop-overread option was introduced in
gcc 11. This fixes the build for gcc 9 and 10.
Change-Id: I96ab5f917d6200cb1681fe6236f1fd4630ef4f7d
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
-rw-r--r-- | src/corelib/tools/qoffsetstringarray_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qoffsetstringarray_p.h b/src/corelib/tools/qoffsetstringarray_p.h index b7c7495c70..8bd7d79afb 100644 --- a/src/corelib/tools/qoffsetstringarray_p.h +++ b/src/corelib/tools/qoffsetstringarray_p.h @@ -66,7 +66,7 @@ class tst_QOffsetStringArray; QT_BEGIN_NAMESPACE QT_WARNING_PUSH -#if defined(Q_CC_GNU) && Q_CC_GNU >= 900 +#if defined(Q_CC_GNU) && Q_CC_GNU >= 1100 // we usually don't overread, but GCC has a false positive QT_WARNING_DISABLE_GCC("-Wstringop-overread") #endif |