diff --git a/tdutils/test/SharedObjectPool.cpp b/tdutils/test/SharedObjectPool.cpp index 575ed469..3d24f2ae 100644 --- a/tdutils/test/SharedObjectPool.cpp +++ b/tdutils/test/SharedObjectPool.cpp @@ -56,7 +56,14 @@ TEST(SharedPtr, simple) { ptr2 = std::move(ptr); CHECK(ptr.empty()); CHECK(*ptr2 == "hello"); +#if TD_CLANG +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wself-assign-overloaded" +#endif ptr2 = ptr2; +#if TD_CLANG +#pragma clang diagnostic pop +#endif CHECK(*ptr2 == "hello"); CHECK(!Deleter::was_delete()); ptr2.reset();