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.