Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(170)

Unified Diff: src/core/SkPathRef.h

Issue 17572010: Build fix for [-Werror=maybe-uninitialized]. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/core/SkAAClip.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkPathRef.h
diff --git a/src/core/SkPathRef.h b/src/core/SkPathRef.h
index b6700392912def34c61d5c1cc00e7f541f49e060..dc25679dc77d157deacc4a733e1d80900948ea6b 100644
--- a/src/core/SkPathRef.h
+++ b/src/core/SkPathRef.h
@@ -470,17 +470,22 @@ private:
case SkPath::kLine_Verb:
pCnt = 1;
break;
- case SkPath::kConic_Verb:
case SkPath::kQuad_Verb:
+ // fall through
+ case SkPath::kConic_Verb:
pCnt = 2;
break;
case SkPath::kCubic_Verb:
pCnt = 3;
break;
+ case SkPath::kClose_Verb:
+ pCnt = 0;
+ break;
case SkPath::kDone_Verb:
SkASSERT(!"growForVerb called for kDone");
// fall through
- case SkPath::kClose_Verb:
+ default:
+ SkASSERT(!"default is not reached");
pCnt = 0;
dshwang 2013/07/03 07:50:26 How about this change. now case statements are sor
}
size_t space = sizeof(uint8_t) + pCnt * sizeof (SkPoint);
« no previous file with comments | « src/core/SkAAClip.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698