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

Unified Diff: src/animator/SkDrawBitmap.cpp

Issue 1917223006: Fix warnings that were exposed when running with SK_DEBUG enable on an optimized release build. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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 | « gyp/common.gypi ('k') | src/core/SkPath.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/animator/SkDrawBitmap.cpp
diff --git a/src/animator/SkDrawBitmap.cpp b/src/animator/SkDrawBitmap.cpp
index 64c2850a3e40a86cd521d993792c954f31d129b4..191240855c9d8c1882aab846a3fea8c1ddf26ee0 100644
--- a/src/animator/SkDrawBitmap.cpp
+++ b/src/animator/SkDrawBitmap.cpp
@@ -73,7 +73,7 @@ void SkDrawBitmap::dump(SkAnimateMaker* maker) {
SkColorGetG(fColor), SkColorGetB(fColor));
if (rowBytes > 0)
SkDebugf("rowBytes=\"%d\" ", rowBytes);
- const char* formatName;
+ const char* formatName SK_INIT_TO_AVOID_WARNING;
switch (format) {
case 0: formatName = "none"; break;
case 1: formatName = "A8"; break;
« no previous file with comments | « gyp/common.gypi ('k') | src/core/SkPath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698