diff options
author | Mark D. Roth <roth@google.com> | 2018-04-19 09:44:38 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-19 09:44:38 -0700 |
commit | 2f08d17a6fe790c9265af781a3edc26bc7351eb3 (patch) | |
tree | 9050dc7dcbcbb1e75e1c79bca14a76a84b7f1592 /test | |
parent | aba91966c0608268c757bc3fcedce039cc8f1a52 (diff) | |
parent | 908a2173fe7d3ec5e9c37275651a9fd1b272c0b7 (diff) | |
download | grpc-grpc-2f08d17a6fe790c9265af781a3edc26bc7351eb3.tar.gz |
Merge pull request #15101 from markdroth/llvm_build_fix
Avoid warnings from LLVM -Wself-assign.
Diffstat (limited to 'test')
-rw-r--r-- | test/core/gprpp/ref_counted_ptr_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/core/gprpp/ref_counted_ptr_test.cc b/test/core/gprpp/ref_counted_ptr_test.cc index 2e398a7722..c810345166 100644 --- a/test/core/gprpp/ref_counted_ptr_test.cc +++ b/test/core/gprpp/ref_counted_ptr_test.cc @@ -88,7 +88,7 @@ TEST(RefCountedPtr, CopyAssignmentWhenEmpty) { TEST(RefCountedPtr, CopyAssignmentToSelf) { RefCountedPtr<Foo> foo(New<Foo>()); - foo = foo; + foo = *&foo; // The "*&" avoids warnings from LLVM -Wself-assign. } TEST(RefCountedPtr, EnclosedScope) { |