From d5731ea8659db09a155e17d17fd56cb889f36ebd Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 31 Aug 2018 15:12:08 +0200 Subject: Add missing fz_var declarations. --- source/fitz/util.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'source') diff --git a/source/fitz/util.c b/source/fitz/util.c index fcf6ca00..d78a2981 100644 --- a/source/fitz/util.c +++ b/source/fitz/util.c @@ -8,6 +8,8 @@ fz_new_display_list_from_page(fz_context *ctx, fz_page *page) fz_display_list *list; fz_device *dev = NULL; + fz_var(dev); + list = fz_new_display_list(ctx, fz_bound_page(ctx, page)); fz_try(ctx) { @@ -77,6 +79,8 @@ fz_new_display_list_from_annot(fz_context *ctx, fz_annot *annot) fz_display_list *list; fz_device *dev = NULL; + fz_var(dev); + list = fz_new_display_list(ctx, fz_bound_annot(ctx, annot)); fz_try(ctx) @@ -106,6 +110,8 @@ fz_new_pixmap_from_display_list(fz_context *ctx, fz_display_list *list, fz_matri fz_pixmap *pix; fz_device *dev = NULL; + fz_var(dev); + rect = fz_bound_display_list(ctx, list); rect = fz_transform_rect(rect, ctm); bbox = fz_round_rect(rect); @@ -143,6 +149,8 @@ fz_new_pixmap_from_page_contents(fz_context *ctx, fz_page *page, fz_matrix ctm, fz_pixmap *pix; fz_device *dev = NULL; + fz_var(dev); + rect = fz_bound_page(ctx, page); rect = fz_transform_rect(rect, ctm); bbox = fz_round_rect(rect); @@ -180,6 +188,8 @@ fz_new_pixmap_from_annot(fz_context *ctx, fz_annot *annot, fz_matrix ctm, fz_col fz_pixmap *pix; fz_device *dev = NULL; + fz_var(dev); + rect = fz_bound_annot(ctx, annot); rect = fz_transform_rect(rect, ctm); bbox = fz_round_rect(rect); @@ -271,6 +281,8 @@ fz_new_stext_page_from_display_list(fz_context *ctx, fz_display_list *list, cons fz_stext_page *text; fz_device *dev = NULL; + fz_var(dev); + if (list == NULL) return NULL; @@ -300,6 +312,8 @@ fz_new_stext_page_from_page(fz_context *ctx, fz_page *page, const fz_stext_optio fz_stext_page *text; fz_device *dev = NULL; + fz_var(dev); + if (page == NULL) return NULL; -- cgit v1.2.3