diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2013-05-28 21:46:00 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2013-05-29 09:58:46 +0200 |
commit | d956556d0e06aa5c8e39eed410b3eb098cc2e742 (patch) | |
tree | ae77329500fcc607f124acc2931451787ef4214d /pdf | |
parent | 9ba8d6f3092023385de95bd65a77327f676412d7 (diff) | |
download | mupdf-d956556d0e06aa5c8e39eed410b3eb098cc2e742.tar.xz |
Silence warnings.
Diffstat (limited to 'pdf')
-rw-r--r-- | pdf/pdf_device.c | 5 | ||||
-rw-r--r-- | pdf/pdf_interpret.c | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/pdf/pdf_device.c b/pdf/pdf_device.c index 37256316..608e6eb8 100644 --- a/pdf/pdf_device.c +++ b/pdf/pdf_device.c @@ -823,6 +823,7 @@ pdf_dev_new_form(pdf_obj **form_ref, pdf_device *pdev, const fz_rect *bbox, int snprintf(text, sizeof(text), "XObject/Fm%d", num); pdf_dict_putp(pdev->resources, text, *form_ref); } + return num; } @@ -1023,7 +1024,7 @@ pdf_dev_begin_mask(fz_device *dev, const fz_rect *bbox, int luminosity, fz_color pdf_obj *egs_ref; pdf_obj *form_ref; pdf_obj *color_obj = NULL; - int num, i; + int i; fz_var(smask); fz_var(egs); @@ -1032,7 +1033,7 @@ pdf_dev_begin_mask(fz_device *dev, const fz_rect *bbox, int luminosity, fz_color pdf_dev_end_text(pdev); /* Make a new form to contain the contents of the softmask */ - num = pdf_dev_new_form(&form_ref, pdev, bbox, 0, 0, 0, 1, colorspace); + pdf_dev_new_form(&form_ref, pdev, bbox, 0, 0, 0, 1, colorspace); fz_try(ctx) { diff --git a/pdf/pdf_interpret.c b/pdf/pdf_interpret.c index b6821d27..13d6751e 100644 --- a/pdf/pdf_interpret.c +++ b/pdf/pdf_interpret.c @@ -1490,7 +1490,6 @@ pdf_run_xobject(pdf_csi *csi, pdf_obj *resources, pdf_xobject *xobj, const fz_ma fz_context *ctx = csi->dev->ctx; pdf_gstate *gstate = NULL; int oldtop = 0; - int popmask; fz_matrix local_transform = *transform; softmask_save softmask = { NULL }; int gparent_save; @@ -1512,7 +1511,6 @@ pdf_run_xobject(pdf_csi *csi, pdf_obj *resources, pdf_xobject *xobj, const fz_ma gstate = csi->gstate + csi->gtop; oldtop = csi->gtop; - popmask = 0; /* apply xobject's transform matrix */ fz_concat(&local_transform, &xobj->matrix, &local_transform); |