Fix a warning.
authorscroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 26 Sep 2013 21:49:46 +0000 (21:49 +0000)
committerscroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 26 Sep 2013 21:49:46 +0000 (21:49 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@11489 2bbb7eff-a529-9590-31e7-b0007b416f81

src/utils/SkFrontBufferedStream.cpp

index 12030da..d68b9e4 100644 (file)
@@ -138,7 +138,7 @@ size_t SkFrontBufferedStream::read(void* voidDst, size_t size) {
     }
 
     if (size > 0 && !fStream->isAtEnd()) {
-        const size_t bytesReadDirectly = this->readDirectlyFromStream(dst, size);
+        SkDEBUGCODE(const size_t bytesReadDirectly =) this->readDirectlyFromStream(dst, size);
         SkDEBUGCODE(size -= bytesReadDirectly;)
         SkASSERT(size + (fOffset - start) == totalSize);
     }