diff options
author | Chris Liddell <chris.liddell@artifex.com> | 2023-01-04 11:25:28 +0000 |
---|---|---|
committer | Chris Liddell <chris.liddell@artifex.com> | 2023-01-04 15:09:44 +0000 |
commit | e7f4a370a615b56c14c7edf0084c8f92ee830036 (patch) | |
tree | 79766a53e6019acceac5459b63dd2ac2e1fa5578 /pdf | |
parent | 7e15eb3c808fc6d1aa95e175892f716df7eec7df (diff) | |
download | ghostpdl-e7f4a370a615b56c14c7edf0084c8f92ee830036.tar.gz |
Fix compiler warnings in pdf/
Diffstat (limited to 'pdf')
-rw-r--r-- | pdf/pdf_check.c | 4 | ||||
-rw-r--r-- | pdf/pdf_deref.c | 3 | ||||
-rw-r--r-- | pdf/pdf_font3.c | 10 | ||||
-rw-r--r-- | pdf/pdf_xref.c | 2 |
4 files changed, 5 insertions, 14 deletions
diff --git a/pdf/pdf_check.c b/pdf/pdf_check.c index 1b0619142..e699210ab 100644 --- a/pdf/pdf_check.c +++ b/pdf/pdf_check.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2019-2022 Artifex Software, Inc. +/* Copyright (C) 2019-2023 Artifex Software, Inc. All Rights Reserved. This software is provided AS-IS with no warranty, either express or @@ -412,7 +412,7 @@ static int pdfi_check_XObject(pdf_context *ctx, pdf_dict *xobject, pdf_dict *pag code = pdfi_dict_knownget_type(ctx, xobject, "Resources", PDF_DICT, (pdf_obj **)&resource_dict); if (code > 0) { - if (ctx->loop_detection && pdf_object_num(resource_dict) != 0) { + if (ctx->loop_detection && pdf_object_num((pdf_obj *)resource_dict) != 0) { code = pdfi_loop_detector_add_object(ctx, resource_dict->object_num); if (code < 0) goto transparency_exit; diff --git a/pdf/pdf_deref.c b/pdf/pdf_deref.c index 52ae93754..632b6a9b1 100644 --- a/pdf/pdf_deref.c +++ b/pdf/pdf_deref.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2020-2022 Artifex Software, Inc. +/* Copyright (C) 2020-2023 Artifex Software, Inc. All Rights Reserved. This software is provided AS-IS with no warranty, either express or @@ -969,7 +969,6 @@ static int pdfi_dereference_main(pdf_context *ctx, uint64_t obj, uint64_t gen, p if (code < 0 || *object == NULL) goto error; } else { - pdf_c_stream *SubFile_stream = NULL; #if CACHE_STATISTICS ctx->misses++; #endif diff --git a/pdf/pdf_font3.c b/pdf/pdf_font3.c index 34fba106b..af494c665 100644 --- a/pdf/pdf_font3.c +++ b/pdf/pdf_font3.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2019-2022 Artifex Software, Inc. +/* Copyright (C) 2019-2023 Artifex Software, Inc. All Rights Reserved. This software is provided AS-IS with no warranty, either express or @@ -30,14 +30,6 @@ #include "gsuid.h" /* For no_UniqueID */ #include "gsutil.h" /* For gs_next_ids() */ -static void pdfi_type3_copy_color(gs_gstate_color *src, gs_gstate_color *dest) -{ - *dest->ccolor = *src->ccolor; - *dest->dev_color = *src->dev_color; - dest->color_space = src->color_space; - dest->effective_opm = src->effective_opm; -} - static int pdfi_type3_build_char(gs_show_enum * penum, gs_gstate * pgs, gs_font * pfont, gs_char chr, gs_glyph glyph) diff --git a/pdf/pdf_xref.c b/pdf/pdf_xref.c index db6f725e8..af3f71f31 100644 --- a/pdf/pdf_xref.c +++ b/pdf/pdf_xref.c @@ -839,7 +839,7 @@ static int read_xref(pdf_context *ctx, pdf_c_stream *s) { int code = 0; pdf_dict *d = NULL; - uint64_t size = 0, max_obj = 0; + uint64_t max_obj = 0; int64_t num; int obj_num; bool known = false; |