aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--include/gpu/GrTestUtils.h4
-rw-r--r--src/pathops/SkPathOpsSimplify.cpp2
-rw-r--r--tests/PathOpsSimplifyRectThreadedTest.cpp3
3 files changed, 5 insertions, 4 deletions
diff --git a/include/gpu/GrTestUtils.h b/include/gpu/GrTestUtils.h
index 8ffae09ddd..475e38a6a1 100644
--- a/include/gpu/GrTestUtils.h
+++ b/include/gpu/GrTestUtils.h
@@ -51,7 +51,7 @@ static inline GrColor GrRandomColor(SkRandom* random) {
};
ColorMode colorMode = ColorMode(random->nextULessThan(kLast_ColorMode + 1));
- GrColor color;
+ GrColor color SK_INIT_TO_AVOID_WARNING;
switch (colorMode) {
case kAllOnes_ColorMode:
color = GrColorPackRGBA(0xFF, 0xFF, 0xFF, 0xFF);
@@ -87,7 +87,7 @@ static inline uint8_t GrRandomCoverage(SkRandom* random) {
};
CoverageMode colorMode = CoverageMode(random->nextULessThan(kLast_CoverageMode + 1));
- uint8_t coverage;
+ uint8_t coverage SK_INIT_TO_AVOID_WARNING;
switch (colorMode) {
case kZero_CoverageMode:
coverage = 0;
diff --git a/src/pathops/SkPathOpsSimplify.cpp b/src/pathops/SkPathOpsSimplify.cpp
index 08bb26d9a9..97f0350db2 100644
--- a/src/pathops/SkPathOpsSimplify.cpp
+++ b/src/pathops/SkPathOpsSimplify.cpp
@@ -216,7 +216,7 @@ bool Simplify(const SkPath& path, SkPath* result) {
result->reset();
result->setFillType(fillType);
SkPathWriter wrapper(*result);
- bool closable;
+ bool closable SK_INIT_TO_AVOID_WARNING;
if (builder.xorMask() == kWinding_PathOpsMask
? !bridgeWinding(contourList, &wrapper, &allocator, &closable)
: !bridgeXor(contourList, &wrapper, &allocator, &closable)) {
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