From ee5ee582430196ee3a9b9473bf865e060515996c Mon Sep 17 00:00:00 2001 From: "reed@google.com" Date: Thu, 28 Apr 2011 14:12:48 +0000 Subject: [PATCH] fix warnings about possibly-uninitialized-variables git-svn-id: http://skia.googlecode.com/svn/trunk@1208 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/pdf/SkPDFFont.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pdf/SkPDFFont.cpp b/src/pdf/SkPDFFont.cpp index 3e363f7a90..acfe41e8e1 100644 --- a/src/pdf/SkPDFFont.cpp +++ b/src/pdf/SkPDFFont.cpp @@ -715,7 +715,9 @@ bool SkPDFFont::addFontDescriptor(int16_t defaultWidth) { switch (fFontInfo->fType) { case SkAdvancedTypefaceMetrics::kType1_Font: { - size_t header, data, trailer; + size_t header SK_INIT_TO_AVOID_WARNING; + size_t data SK_INIT_TO_AVOID_WARNING; + size_t trailer SK_INIT_TO_AVOID_WARNING; SkRefPtr rawFontData = SkFontHost::OpenStream(SkTypeface::UniqueID(fTypeface.get())); rawFontData->unref(); // SkRefPtr and OpenStream both took a ref.