From 100fb6c3a048a4c3b682b8ad48d02bddcef8a11b Mon Sep 17 00:00:00 2001 From: Giuseppe D'Angelo Date: Sat, 19 Jun 2021 15:41:18 +0200 Subject: QPodArrayOps: re-enable -Wstringop-overflow The spurious warning is not emitted any more by GCC 10 / 11. Even if it's still emitted by earlier GCC versions, now it's no longer an error. Change-Id: Ia8bf3e10905909c097ecc025bf89f818410a8dae Reviewed-by: Andrei Golubev Reviewed-by: Thiago Macieira --- src/corelib/tools/qarraydataops.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/corelib/tools') diff --git a/src/corelib/tools/qarraydataops.h b/src/corelib/tools/qarraydataops.h index d28924bc63..9a2f43cbb1 100644 --- a/src/corelib/tools/qarraydataops.h +++ b/src/corelib/tools/qarraydataops.h @@ -58,11 +58,6 @@ template struct QArrayDataPointer; namespace QtPrivate { -QT_WARNING_PUSH -#if defined(Q_CC_GNU) && Q_CC_GNU >= 700 -QT_WARNING_DISABLE_GCC("-Wstringop-overflow") -#endif - template struct QPodArrayOps : public QArrayDataPointer @@ -293,7 +288,6 @@ public: this->ptr = pair.second; } }; -QT_WARNING_POP template struct QGenericArrayOps -- cgit v1.2.3