aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/PathOpsSimplifyRectThreadedTest.cpp
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2016-04-07 09:01:20 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-04-07 09:01:20 -0700
commit73add93a9cac83f2369dec94e3e392d26590c838 (patch)
tree31b6bb7f8558b7edaa6ab5f4586dcd44e890d5ab /tests/PathOpsSimplifyRectThreadedTest.cpp
parent8cd4a24236ffc26522d0372c0d0ab0d96e301b3b (diff)
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
Diffstat (limited to 'tests/PathOpsSimplifyRectThreadedTest.cpp')
-rw-r--r--tests/PathOpsSimplifyRectThreadedTest.cpp3
1 files changed, 2 insertions, 1 deletions
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