mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Fix some gcc -Wself-move warnings
This commit is contained in:
parent
6a05d63993
commit
f947e2afec
1 changed files with 5 additions and 3 deletions
|
@ -91,13 +91,15 @@ void TestIrrPtr::testRefCounting()
|
||||||
obj->getReferenceCount());
|
obj->getReferenceCount());
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(__clang__)
|
#if defined(__clang__) || defined(__GNUC__)
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#if __clang_major__ >= 7
|
#if __clang_major__ >= 7
|
||||||
#pragma GCC diagnostic ignored "-Wself-assign-overloaded"
|
#pragma GCC diagnostic ignored "-Wself-assign-overloaded"
|
||||||
#endif
|
#endif
|
||||||
|
#if defined(__clang__) || __GNUC__ >= 13
|
||||||
#pragma GCC diagnostic ignored "-Wself-move"
|
#pragma GCC diagnostic ignored "-Wself-move"
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
void TestIrrPtr::testSelfAssignment()
|
void TestIrrPtr::testSelfAssignment()
|
||||||
{
|
{
|
||||||
|
@ -138,6 +140,6 @@ void TestIrrPtr::testNullHandling()
|
||||||
UASSERT(!p3);
|
UASSERT(!p3);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(__clang__)
|
#if defined(__clang__) || defined(__GNUC__)
|
||||||
#pragma GCC diagnostic pop
|
#pragma GCC diagnostic pop
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue