Fix a warning on Android.

Only define/use haveBuffer in debug mode, since it's only used for
assertions.

Review URL: https://codereview.appspot.com/7384051

git-svn-id: http://skia.googlecode.com/svn/trunk@7824 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
scroggo@google.com 2013-02-22 15:46:44 +00:00
parent 28f9951849
commit c4dc831f7b

View File

@ -485,7 +485,7 @@ bool SkPicturePlayback::parseStreamTag(SkStream* stream, const SkPictInfo& info,
* the buffer tag, because if we have, then its too-late to deal with the
* factories or typefaces.
*/
bool haveBuffer = false;
SkDEBUGCODE(bool haveBuffer = false;)
switch (tag) {
case PICT_READER_TAG: {
@ -537,7 +537,7 @@ bool SkPicturePlayback::parseStreamTag(SkStream* stream, const SkPictInfo& info,
return false;
}
}
haveBuffer = true;
SkDEBUGCODE(haveBuffer = true;)
} break;
}
return true; // success