diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2021-01-11 17:59:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-11 17:59:29 +0100 |
commit | 9043ed4ac5f1c8a4af91b1e2b2ff602bc1963c27 (patch) | |
tree | 0a6e62629bd7d68c938f63089fd784f2ea5d14d7 | |
parent | 074cf0912d495a20b0726b09d271326afbfc9770 (diff) | |
parent | 75d4bbed9c78fb371a869a94924faf1e3cf60d72 (diff) |
Merge pull request #15994 from vespa-engine/toregge/eliminate-clang-warning
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")); } |