fix unused variable warning
authorreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 4 Feb 2013 17:59:02 +0000 (17:59 +0000)
committerreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 4 Feb 2013 17:59:02 +0000 (17:59 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@7546 2bbb7eff-a529-9590-31e7-b0007b416f81

src/gpu/GrContext.cpp

index 52e200309ce893c69d60678da849e6d769d6dec6..9d8c5e6a589588ad32d40b50f3c3f97272b59b30 100644 (file)
@@ -1422,7 +1422,7 @@ bool GrContext::readRenderTargetPixels(GrRenderTarget* target,
         SkCanvas::Config8888 srcC8888 = SkCanvas::kNative_Premul_Config8888;
         SkCanvas::Config8888 dstC8888 = SkCanvas::kNative_Premul_Config8888;
 
-        bool c8888IsValid = grconfig_to_config8888(config, false, &srcC8888);
+        SkDEBUGCODE(bool c8888IsValid =) grconfig_to_config8888(config, false, &srcC8888);
         grconfig_to_config8888(config, unpremul, &dstC8888);
 
         if (swapRAndB) {