diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2013-03-10 11:50:04 -0400 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2013-03-20 11:10:13 +0000 |
commit | f18719db344e5cf9a233a9d89960f7c7a5efd411 (patch) | |
tree | e0d17bd42ee95f3a6dce8fe0b7af903fa2c74eaa /pdf | |
parent | 9d3b728a5f3664161fee1913a0d04ff65a752740 (diff) | |
download | mupdf-f18719db344e5cf9a233a9d89960f7c7a5efd411.tar.xz |
Silence warnings.
Diffstat (limited to 'pdf')
-rw-r--r-- | pdf/pdf_device.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/pdf/pdf_device.c b/pdf/pdf_device.c index ff512de1..48963fcd 100644 --- a/pdf/pdf_device.c +++ b/pdf/pdf_device.c @@ -890,7 +890,6 @@ pdf_dev_fill_text(fz_device *dev, fz_text *text, const fz_matrix *ctm, fz_colorspace *colorspace, float *color, float alpha) { pdf_device *pdev = dev->user; - gstate *gs = CURRENT_GSTATE(pdev); pdf_dev_begin_text(pdev, &text->trm, 0); pdf_dev_font(pdev, text->font, 1); @@ -902,7 +901,6 @@ pdf_dev_stroke_text(fz_device *dev, fz_text *text, fz_stroke_state *stroke, cons fz_colorspace *colorspace, float *color, float alpha) { pdf_device *pdev = dev->user; - gstate *gs = CURRENT_GSTATE(pdev); pdf_dev_begin_text(pdev, &text->trm, 1); pdf_dev_font(pdev, text->font, 1); @@ -913,7 +911,6 @@ static void pdf_dev_clip_text(fz_device *dev, fz_text *text, const fz_matrix *ctm, int accumulate) { pdf_device *pdev = dev->user; - gstate *gs = CURRENT_GSTATE(pdev); pdf_dev_begin_text(pdev, &text->trm, 0); pdf_dev_font(pdev, text->font, 7); @@ -924,7 +921,6 @@ static void pdf_dev_clip_stroke_text(fz_device *dev, fz_text *text, fz_stroke_state *stroke, const fz_matrix *ctm) { pdf_device *pdev = dev->user; - gstate *gs = CURRENT_GSTATE(pdev); pdf_dev_begin_text(pdev, &text->trm, 0); pdf_dev_font(pdev, text->font, 5); @@ -935,7 +931,6 @@ static void pdf_dev_ignore_text(fz_device *dev, fz_text *text, const fz_matrix *ctm) { pdf_device *pdev = dev->user; - gstate *gs = CURRENT_GSTATE(pdev); pdf_dev_begin_text(pdev, &text->trm, 0); pdf_dev_font(pdev, text->font, 3); @@ -1224,6 +1219,7 @@ fz_device *pdf_new_pdf_device(pdf_document *doc, pdf_obj *contents, pdf_obj *res if (pdev->gstates) fz_drop_buffer(ctx, pdev->gstates[0].buf); fz_free(ctx, pdev); + fz_rethrow(ctx); } dev->free_user = pdf_dev_free_user; |