diff options
author | 2011-04-28 14:12:48 +0000 | |
---|---|---|
committer | 2011-04-28 14:12:48 +0000 | |
commit | ee5ee582430196ee3a9b9473bf865e060515996c (patch) | |
tree | 3bf92319906b1b436430872781c03aea4681e94d /src/pdf | |
parent | 95bae399cc073aa4bc3afa8786a85642501559cf (diff) |
fix warnings about possibly-uninitialized-variables
git-svn-id: http://skia.googlecode.com/svn/trunk@1208 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/pdf')
-rw-r--r-- | src/pdf/SkPDFFont.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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<SkStream> rawFontData = SkFontHost::OpenStream(SkTypeface::UniqueID(fTypeface.get())); rawFontData->unref(); // SkRefPtr and OpenStream both took a ref. |