summaryrefslogtreecommitdiff
path: root/AK/Tests/TestWeakPtr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'AK/Tests/TestWeakPtr.cpp')
-rw-r--r--AK/Tests/TestWeakPtr.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/AK/Tests/TestWeakPtr.cpp b/AK/Tests/TestWeakPtr.cpp
index d272c1fc61..0d724e5e90 100644
--- a/AK/Tests/TestWeakPtr.cpp
+++ b/AK/Tests/TestWeakPtr.cpp
@@ -29,6 +29,11 @@
#include <AK/Weakable.h>
#include <AK/WeakPtr.h>
+#ifdef __clang__
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wunused-private-field"
+#endif
+
class SimpleWeakable : public Weakable<SimpleWeakable> {
public:
SimpleWeakable() {}
@@ -37,6 +42,10 @@ private:
int m_member { 123 };
};
+#ifdef __clang__
+#pragma clang diagnostic pop
+#endif
+
TEST_CASE(basic_weak)
{
WeakPtr<SimpleWeakable> weak1;