Fix more warnings.
BUG=
Review URL: https://codereview.chromium.org/14624008
git-svn-id: http://skia.googlecode.com/svn/trunk@9000 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/tools/skimage_main.cpp b/tools/skimage_main.cpp
index abce518..b545af3 100644
--- a/tools/skimage_main.cpp
+++ b/tools/skimage_main.cpp
@@ -183,7 +183,7 @@
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 @@
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);
}
}