init prevLevel to avoid warning

git-svn-id: http://skia.googlecode.com/svn/trunk@10166 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
reed@google.com 2013-07-18 20:20:10 +00:00
parent 8e2ef01cdd
commit 7437bfb9fa

View File

@ -31,7 +31,7 @@ static void TestMipMap(skiatest::Reporter* reporter) {
REPORTER_ASSERT(reporter, !mm->extractLevel(SK_Scalar1, NULL));
REPORTER_ASSERT(reporter, !mm->extractLevel(SK_Scalar1 * 2, NULL));
SkMipMap::Level prevLevel;
SkMipMap::Level prevLevel = { 0 }; // make warnings happy
prevLevel.fPixels = NULL; // sentinel
SkScalar scale = SK_Scalar1;