Skip to content

Commit

Permalink
Tests: suppress warning about intened self-assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Oct 11, 2023
1 parent be2aa17 commit b197473
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/src/App/StringHasher.cpp
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit b197473

Please sign in to comment.