aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-05-03 20:39:22 +0000
committerGravatar scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-05-03 20:39:22 +0000
commit0018f75f2f2d19772db4f47e1885597230e23f14 (patch)
treec93c7a9bbcbd048b836986225ae0dc077e9762ae /tools
parentcb3c8d7e6a1da987c9a1592860bbd9216d652762 (diff)
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
Diffstat (limited to 'tools')
-rw-r--r--tools/skimage_main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/skimage_main.cpp b/tools/skimage_main.cpp
index abce5182f5..b545af3edb 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);
}
}