Fix warning-as-error for var used only in an assert (and therefore not in the release build).

git-svn-id: http://skia.googlecode.com/svn/trunk@7054 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
bsalomon@google.com 2013-01-07 17:35:10 +00:00
parent 21cbec4870
commit 57313f6472

View File

@ -146,9 +146,11 @@ SkColorTable::SkColorTable(SkFlattenableReadBuffer& buffer) {
fFlags = buffer.readUInt();
fCount = buffer.getArrayCount();
fColors = (SkPMColor*)sk_malloc_throw(fCount * sizeof(SkPMColor));
const uint32_t countRead = buffer.readColorArray(fColors);
SkDEBUGCODE(const uint32_t countRead =) buffer.readColorArray(fColors);
#ifdef SK_DEBUG
SkASSERT((unsigned)fCount <= 256);
SkASSERT(countRead == fCount);
#endif
}
void SkColorTable::flatten(SkFlattenableWriteBuffer& buffer) const {