Fix more warnings.
authorscroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 3 May 2013 20:39:22 +0000 (20:39 +0000)
committerscroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 3 May 2013 20:39:22 +0000 (20:39 +0000)
BUG=

Review URL: https://codereview.chromium.org/14624008

git-svn-id: http://skia.googlecode.com/svn/trunk@9000 2bbb7eff-a529-9590-31e7-b0007b416f81

tools/skimage_main.cpp

index abce518..b545af3 100644 (file)
@@ -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);
                         }
                     }