From f418a96f9b7f003738894d0c19e176b2abc457df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Sun, 26 Jul 2020 17:11:19 +0200 Subject: Disable warning about self-move and self-assign-overload Change-Id: I1d20d3f424eced5cc5787934663b9d243f75d46e Reviewed-by: Thiago Macieira --- tests/auto/other/compiler/tst_compiler.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/auto/other') diff --git a/tests/auto/other/compiler/tst_compiler.cpp b/tests/auto/other/compiler/tst_compiler.cpp index 435bd42faf..10d91894b7 100644 --- a/tests/auto/other/compiler/tst_compiler.cpp +++ b/tests/auto/other/compiler/tst_compiler.cpp @@ -1224,8 +1224,11 @@ void tst_Compiler::cxx11_rvalue_refs() #else // we require std::move: { +QT_WARNING_PUSH +QT_WARNING_DISABLE_CLANG("-Wself-move") int i = 1; i = std::move(i); +QT_WARNING_POP MoveDefinedQString s("Hello"); MoveDefinedQString t = std::move(s); -- cgit v1.2.3