summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/tools/qhash
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-07-26 17:11:19 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-07-26 18:06:34 +0200
commitf418a96f9b7f003738894d0c19e176b2abc457df (patch)
tree01c5f37ed6cd4079f296ae066ae0bc82b0f62392 /tests/auto/corelib/tools/qhash
parentd1fd2ff11f53be850eeb7f5f4699ea4a8966f164 (diff)
Disable warning about self-move and self-assign-overload
Change-Id: I1d20d3f424eced5cc5787934663b9d243f75d46e Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/corelib/tools/qhash')
-rw-r--r--tests/auto/corelib/tools/qhash/tst_qhash.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/corelib/tools/qhash/tst_qhash.cpp b/tests/auto/corelib/tools/qhash/tst_qhash.cpp
index b1067e9a83..d5a8db7553 100644
--- a/tests/auto/corelib/tools/qhash/tst_qhash.cpp
+++ b/tests/auto/corelib/tools/qhash/tst_qhash.cpp
@@ -331,6 +331,8 @@ void tst_QHash::insert1()
QVERIFY(hash.size() == 2);
QVERIFY(!hash.isEmpty());
+QT_WARNING_PUSH
+QT_WARNING_DISABLE_CLANG("-Wself-assign-overloaded")
{
Hash hash2 = hash;
hash2 = hash;
@@ -343,6 +345,7 @@ void tst_QHash::insert1()
QVERIFY(hash2.isEmpty());
}
QVERIFY(hash.size() == 2);
+QT_WARNING_POP
{
Hash hash2 = hash;