aboutsummaryrefslogtreecommitdiff
path: root/src/unittest/test_irrptr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/unittest/test_irrptr.cpp')
-rw-r--r--src/unittest/test_irrptr.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/unittest/test_irrptr.cpp b/src/unittest/test_irrptr.cpp
index 3484f1514..2fb7cfcd6 100644
--- a/src/unittest/test_irrptr.cpp
+++ b/src/unittest/test_irrptr.cpp
@@ -93,7 +93,9 @@ void TestIrrPtr::testRefCounting()
#if defined(__clang__)
#pragma GCC diagnostic push
- #pragma GCC diagnostic ignored "-Wself-assign-overloaded"
+ #if __clang_major__ >= 7
+ #pragma GCC diagnostic ignored "-Wself-assign-overloaded"
+ #endif
#pragma GCC diagnostic ignored "-Wself-move"
#endif