forked from Mirrorlandia_minetest/minetest
Hide Wself-assign-overloaded and Wself-move unittest compilation warnings
The warnings occured with the clang compiler
This commit is contained in:
parent
6fedee16f0
commit
d1e0f73b77
@ -91,6 +91,12 @@ void TestIrrPtr::testRefCounting()
|
||||
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()
|
||||
{
|
||||
irr_ptr<IReferenceCounted> p1{new IReferenceCounted()};
|
||||
@ -129,3 +135,7 @@ void TestIrrPtr::testNullHandling()
|
||||
UASSERT(!p2);
|
||||
UASSERT(!p3);
|
||||
}
|
||||
|
||||
#if defined(__clang__)
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user