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

Unified Diff: tools/skimage_main.cpp

Issue 14789014: Fix build (warning). (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/skimage_main.cpp
diff --git a/tools/skimage_main.cpp b/tools/skimage_main.cpp
index 688d3a22753eb943d89245827eb78898dd541569..abce5182f5e93d9213eb355d793090ad2e3489db 100644
--- a/tools/skimage_main.cpp
+++ b/tools/skimage_main.cpp
@@ -206,7 +206,8 @@ static void decodeFileAndWrite(const char srcPath[], const SkString* writePath)
SkString suffix = SkStringPrintf("_%s.png", subsetDim.c_str());
SkString outPath;
make_outname(&outPath, writePath->c_str(), srcPath, suffix.c_str());
- bool success = write_bitmap(outPath.c_str(), &bitmapFromDecodeSubset);
+ SkDEBUGCODE(bool success =)
+ write_bitmap(outPath.c_str(), &bitmapFromDecodeSubset);
SkASSERT(success);
gSuccessfulSubsetDecodes.push_back().printf("\twrote %s", outPath.c_str());
// Also use extractSubset from the original for visual comparison.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698