summaryrefslogtreecommitdiff
path: root/src/unittest/test_irrptr.cpp
diff options
context:
space:
mode:
authorHybridDog <ovvv@web.de>2020-03-05 14:11:58 +0100
committersfan5 <sfan5@live.de>2021-09-17 18:13:04 +0200
commitd1e0f73b770165fbd889b8298dec79c83107862e (patch)
tree8c4c353176e10fc2d3d88292aee6406773f61300 /src/unittest/test_irrptr.cpp
parent6fedee16f098549ffaee188b02b777239513abc3 (diff)
downloadminetest-d1e0f73b770165fbd889b8298dec79c83107862e.tar.gz
minetest-d1e0f73b770165fbd889b8298dec79c83107862e.tar.bz2
minetest-d1e0f73b770165fbd889b8298dec79c83107862e.zip
Hide Wself-assign-overloaded and Wself-move unittest compilation warnings
The warnings occured with the clang compiler
Diffstat (limited to 'src/unittest/test_irrptr.cpp')
-rw-r--r--src/unittest/test_irrptr.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/unittest/test_irrptr.cpp b/src/unittest/test_irrptr.cpp
index aa857ff46..3484f1514 100644
--- a/src/unittest/test_irrptr.cpp
+++ b/src/unittest/test_irrptr.cpp
@@ -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