summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2018-08-31 15:12:08 +0200
committerTor Andersson <tor.andersson@artifex.com>2018-09-05 12:52:06 +0200
commitd5731ea8659db09a155e17d17fd56cb889f36ebd (patch)
tree387e31161f53232355af9072359938bfda897fc2
parente8df80eb54d51c9339f7e150e266f21b34945ba0 (diff)
downloadmupdf-d5731ea8659db09a155e17d17fd56cb889f36ebd.tar.xz
Add missing fz_var declarations.
-rw-r--r--source/fitz/util.c14
1 files changed, 14 insertions, 0 deletions
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;