diff options
author | Ken Sharp <ken.sharp@artifex.com> | 2010-10-07 12:49:54 +0000 |
---|---|---|
committer | Ken Sharp <ken.sharp@artifex.com> | 2010-10-07 12:49:54 +0000 |
commit | 5fceaf718a7c4ddffc09989751b8a9d7048d9ece (patch) | |
tree | 09c9aa06b2aaf43b0209b92607daaeab71e08d6b /gs/base/gdevpdtf.c | |
parent | 53e0cff7e492bba740c6c989802f7f4393158855 (diff) | |
download | ghostpdl-5fceaf718a7c4ddffc09989751b8a9d7048d9ece.tar.gz |
More changes to silence static analysis warnings. Mostly removing unused variables or
assignments.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11770 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'gs/base/gdevpdtf.c')
-rw-r--r-- | gs/base/gdevpdtf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gs/base/gdevpdtf.c b/gs/base/gdevpdtf.c index 64a498bb3..1209aecb1 100644 --- a/gs/base/gdevpdtf.c +++ b/gs/base/gdevpdtf.c @@ -209,7 +209,6 @@ find_std_appearance(const gx_device_pdf *pdev, gs_font_base *bfont, return -1; } - mask |= FONT_SAME_OUTLINES; for (i = 0; i < PDF_NUM_STANDARD_FONTS; ++psf, ++i) { gs_font_base *cfont; int code; @@ -636,7 +635,7 @@ has_extension_glyphs(gs_font *pfont) const int sl = strlen(gx_extendeg_glyph_name_separator); psf_enumerate_glyphs_begin(&genum, (gs_font *)pfont, NULL, 0, GLYPH_SPACE_NAME); - for (glyph = gs_no_glyph; (code = psf_enumerate_glyphs_next(&genum, &glyph)) != 1; ) { + for (glyph = gs_no_glyph; (psf_enumerate_glyphs_next(&genum, &glyph)) != 1; ) { code = pfont->procs.glyph_name(pfont, glyph, &str); if (code < 0) return code; @@ -895,6 +894,8 @@ pdf_font_simple_alloc(gx_device_pdf *pdev, pdf_font_resource_t **ppfres, pdf_font_descriptor_FontType(pfd), pdf_write_contents_simple); + if (code < 0) + return(gs_note_error(code)); pdfont->FontDescriptor = pfd; set_is_MM_instance(pdfont, pdf_font_descriptor_font(pfd, false)); *ppfres = pdfont; |