mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
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
1 changed files with 10 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue