init prevLevel to avoid warning
authorreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 18 Jul 2013 20:20:10 +0000 (20:20 +0000)
committerreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 18 Jul 2013 20:20:10 +0000 (20:20 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@10166 2bbb7eff-a529-9590-31e7-b0007b416f81

tests/MipMapTest.cpp

index c305532..9e1d463 100644 (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;