From 73add93a9cac83f2369dec94e3e392d26590c838 Mon Sep 17 00:00:00 2001 From: robertphillips Date: Thu, 7 Apr 2016 09:01:20 -0700 Subject: Appease valgrind wrt testing code initialization The new swarming valgrind bot appears to be higher maintenance. These changes seem harmless and will, hopefully, unblock the bot. TBR=bsalomon@google.com https://build.chromium.org/p/client.skia.fyi/builders/Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-SwarmingValgrind/builds/57 BUG=skia:5164 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1867053002 Review URL: https://codereview.chromium.org/1867053002 --- tests/PathOpsSimplifyRectThreadedTest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/PathOpsSimplifyRectThreadedTest.cpp') diff --git a/tests/PathOpsSimplifyRectThreadedTest.cpp b/tests/PathOpsSimplifyRectThreadedTest.cpp index 8c4e03c460..7289440e0e 100644 --- a/tests/PathOpsSimplifyRectThreadedTest.cpp +++ b/tests/PathOpsSimplifyRectThreadedTest.cpp @@ -42,7 +42,8 @@ static void testSimplify4x4RectsMain(PathOpsThreadState* data) SkPath path, out; char* str = pathStr; path.setFillType(SkPath::kWinding_FillType); - int l, t, r, b; + int l SK_INIT_TO_AVOID_WARNING, t SK_INIT_TO_AVOID_WARNING, + r SK_INIT_TO_AVOID_WARNING, b SK_INIT_TO_AVOID_WARNING; if (aShape) { switch (aShape) { case 1: // square -- cgit v1.2.3