aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/TArrayTest.cpp
diff options
context:
space:
mode:
authorGravatar Ben Wagner <bungeman@google.com>2018-04-24 16:29:16 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-04-24 20:58:06 +0000
commitff134f20aeeac3394d2e92d08a6eb495f87d2f1a (patch)
treefe6519a22ad4251efe534868cab00ac82d8f3a7a /tests/TArrayTest.cpp
parenta11f7d0a5991bd991698ec5375850e9c69e2692b (diff)
Compile with latest clang 7.
Changes to warnings in clang introduced by https://reviews.llvm.org/D43322 and https://reviews.llvm.org/D44883 cause warning as error failures when building Skia. In particular this addresses return-std-move-in-c++11 and self-assign-overloaded. Change-Id: I680318098d8af1b64fba464585c7cdfcfcf39d66 Reviewed-on: https://skia-review.googlesource.com/123582 Reviewed-by: Greg Daniel <egdaniel@google.com> Reviewed-by: Mike Klein <mtklein@google.com> Commit-Queue: Ben Wagner <bungeman@google.com>
Diffstat (limited to 'tests/TArrayTest.cpp')
-rw-r--r--tests/TArrayTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/TArrayTest.cpp b/tests/TArrayTest.cpp
index 1b376e4d4b..5845b61f93 100644
--- a/tests/TArrayTest.cpp
+++ b/tests/TArrayTest.cpp
@@ -289,7 +289,7 @@ static void test_self_assignment(skiatest::Reporter* reporter) {
REPORTER_ASSERT(reporter, a.count() == 1);
REPORTER_ASSERT(reporter, a[0] == 1);
- a = a;
+ a = static_cast<decltype(a)&>(a);
REPORTER_ASSERT(reporter, !a.empty());
REPORTER_ASSERT(reporter, a.count() == 1);
REPORTER_ASSERT(reporter, a[0] == 1);