From: A. Unique TensorFlower Date: Mon, 9 Apr 2018 14:21:54 +0000 (-0700) Subject: Suppress -Wself-assign in self-assignment tests, which triggers in newer clang revisions. X-Git-Tag: tflite-v0.1.7~16^2^2~44 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c2c4f669be8f342b5a41778c840188469ef62e72;p=platform%2Fupstream%2Ftensorflow.git Suppress -Wself-assign in self-assignment tests, which triggers in newer clang revisions. PiperOrigin-RevId: 192123736 --- diff --git a/tensorflow/core/lib/gtl/flatmap_test.cc b/tensorflow/core/lib/gtl/flatmap_test.cc index bb65e53..0901eba 100644 --- a/tensorflow/core/lib/gtl/flatmap_test.cc +++ b/tensorflow/core/lib/gtl/flatmap_test.cc @@ -321,7 +321,7 @@ TEST(FlatMap, Copy) { NumMap copy2; copy2 = src; EXPECT_EQ(Contents(src), Contents(copy2)); - copy2 = copy2; // Self-assignment + copy2 = *©2; // Self-assignment, avoiding -Wself-assign. EXPECT_EQ(Contents(src), Contents(copy2)); } }