diff options
author | Tor Egge <Tor.Egge@broadpark.no> | 2021-01-11 16:20:11 +0100 |
---|---|---|
committer | Tor Egge <Tor.Egge@broadpark.no> | 2021-01-11 16:20:11 +0100 |
commit | 75d4bbed9c78fb371a869a94924faf1e3cf60d72 (patch) | |
tree | a04db2ea3859020a5aaf897d6739a2041f6c868d | |
parent | b8e785bc4df2af25e317e19b23d9f12c83dbdf6e (diff) |
Ignore clang warning (-Wself-assign-overloaded).
-rw-r--r-- | vespalib/src/tests/shared_string_repo/shared_string_repo_test.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vespalib/src/tests/shared_string_repo/shared_string_repo_test.cpp b/vespalib/src/tests/shared_string_repo/shared_string_repo_test.cpp index aaf4a5e3e56..db5b1c6f217 100644 --- a/vespalib/src/tests/shared_string_repo/shared_string_repo_test.cpp +++ b/vespalib/src/tests/shared_string_repo/shared_string_repo_test.cpp @@ -309,7 +309,14 @@ TEST("require that handle/string can be obtained from string_id") { TEST("require that handle can be self-assigned") { Handle a("foo"); +#ifdef __clang__ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wself-assign-overloaded" +#endif a = a; +#ifdef __clang__ +#pragma clang diagnostic pop +#endif EXPECT_EQUAL(a.as_string(), vespalib::string("foo")); } |