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

Unified Diff: tools/skimage_main.cpp

Issue 14624008: Fix more warnings. (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 abce5182f5e93d9213eb355d793090ad2e3489db..b545af3edb8e67dc1152759fb69498d77c29fbd2 100644
--- a/tools/skimage_main.cpp
+++ b/tools/skimage_main.cpp
@@ -183,7 +183,7 @@ static void decodeFileAndWrite(const char srcPath[], const SkString* writePath)
gSuccessfulDecodes.push_back().printf("%s [%d %d]", srcPath, bitmap.width(), bitmap.height());
if (FLAGS_testSubsetDecoding) {
- bool couldRewind = stream.rewind();
+ SkDEBUGCODE(bool couldRewind =) stream.rewind();
SkASSERT(couldRewind);
int width, height;
// Build the tile index for decoding subsets. If the image is 1x1, skip subset
@@ -215,7 +215,7 @@ static void decodeFileAndWrite(const char srcPath[], const SkString* writePath)
if (bitmap.extractSubset(&extractedSubset, rect)) {
suffix.printf("_%s_extracted.png", subsetDim.c_str());
make_outname(&outPath, writePath->c_str(), srcPath, suffix.c_str());
- success = write_bitmap(outPath.c_str(), &extractedSubset);
+ SkDEBUGCODE(success =) write_bitmap(outPath.c_str(), &extractedSubset);
SkASSERT(success);
}
}
« 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