Fix build (warning).
authorscroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 3 May 2013 20:21:17 +0000 (20:21 +0000)
committerscroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 3 May 2013 20:21:17 +0000 (20:21 +0000)
BUG=

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

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

tools/skimage_main.cpp

index 688d3a2..abce518 100644 (file)
@@ -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.