Tests: suppress warning about intened self-assignment

This commit is contained in:
wmayer
2023-10-11 13:51:38 +02:00
committed by wwmayer
parent be2aa179b1
commit b197473842

View File

@@ -747,6 +747,11 @@ TEST_F(StringIDRefTest, swap) // NOLINT
EXPECT_EQ(indexA, idRefB.getIndex());
}
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wself-assign-overloaded"
#endif
TEST_F(StringIDRefTest, assignmentFromSelf) // NOLINT
{
// Arrange
@@ -759,6 +764,10 @@ TEST_F(StringIDRefTest, assignmentFromSelf) // NOLINT
EXPECT_EQ(1, idRef.getRefCount());
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
TEST_F(StringIDRefTest, assignmentToEmptyFromStringID) // NOLINT
{
// Arrange