Hide Wself-assign-overloaded and Wself-move unittest compilation warnings

The warnings occured with the clang compiler
This commit is contained in:
HybridDog 2020-03-05 14:11:58 +01:00 committed by sfan5
parent 6fedee16f0
commit d1e0f73b77

@ -91,6 +91,12 @@ void TestIrrPtr::testRefCounting()
obj->getReferenceCount()); obj->getReferenceCount());
} }
#if defined(__clang__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wself-assign-overloaded"
#pragma GCC diagnostic ignored "-Wself-move"
#endif
void TestIrrPtr::testSelfAssignment() void TestIrrPtr::testSelfAssignment()
{ {
irr_ptr<IReferenceCounted> p1{new IReferenceCounted()}; irr_ptr<IReferenceCounted> p1{new IReferenceCounted()};
@ -129,3 +135,7 @@ void TestIrrPtr::testNullHandling()
UASSERT(!p2); UASSERT(!p2);
UASSERT(!p3); UASSERT(!p3);
} }
#if defined(__clang__)
#pragma GCC diagnostic pop
#endif