From ff134f20aeeac3394d2e92d08a6eb495f87d2f1a Mon Sep 17 00:00:00 2001 From: Ben Wagner Date: Tue, 24 Apr 2018 16:29:16 -0400 Subject: 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 Reviewed-by: Mike Klein Commit-Queue: Ben Wagner --- tests/PathOpsDVectorTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/PathOpsDVectorTest.cpp') diff --git a/tests/PathOpsDVectorTest.cpp b/tests/PathOpsDVectorTest.cpp index 583a868149..5eced8f5e7 100644 --- a/tests/PathOpsDVectorTest.cpp +++ b/tests/PathOpsDVectorTest.cpp @@ -28,7 +28,7 @@ DEF_TEST(PathOpsDVector, reporter) { SkASSERT(ValidVector(v2)); v1 += v2; REPORTER_ASSERT(reporter, v1.fX == 0 && v1.fY == 0); - v2 -= v2; + v2 -= static_cast(v2); REPORTER_ASSERT(reporter, v2.fX == 0 && v2.fY == 0); v1 = tests[index + 1] - tests[index]; v1 /= 2; -- cgit v1.2.3