diff options
author | Chris Liddell <chris.liddell@artifex.com> | 2023-01-04 11:22:37 +0000 |
---|---|---|
committer | Chris Liddell <chris.liddell@artifex.com> | 2023-01-04 15:09:44 +0000 |
commit | 7e15eb3c808fc6d1aa95e175892f716df7eec7df (patch) | |
tree | 5b72b9b506625f9b4e4be75edca1a4269b898f98 /psi | |
parent | 4662fae9bec61c34b47310b6600f3efe035f5e4b (diff) | |
download | ghostpdl-7e15eb3c808fc6d1aa95e175892f716df7eec7df.tar.gz |
Fix compiler warnings in psi/
Unused variables
Diffstat (limited to 'psi')
-rw-r--r-- | psi/zfile.c | 4 | ||||
-rw-r--r-- | psi/zpdfops.c | 5 |
2 files changed, 3 insertions, 6 deletions
diff --git a/psi/zfile.c b/psi/zfile.c index b8a17c8a7..6ce7866e5 100644 --- a/psi/zfile.c +++ b/psi/zfile.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2001-2022 Artifex Software, Inc. +/* Copyright (C) 2001-2023 Artifex Software, Inc. All Rights Reserved. This software is provided AS-IS with no warranty, either express or @@ -1288,11 +1288,9 @@ lib_sopen(const gs_file_path_ptr pfpath, const gs_memory_t *mem, const char *fna { /* We need a buffer to hold the expanded file name. */ char filename_found[DEFAULT_BUFFER_SIZE]; - gp_file *file = NULL; uint fnamelen; ref obj; int code; - stream *s; /* open the usual 'stream', then if successful, return the file */ code = lib_file_open(pfpath, mem, NULL, fname, strlen(fname), diff --git a/psi/zpdfops.c b/psi/zpdfops.c index 50b4f56a1..18696422d 100644 --- a/psi/zpdfops.c +++ b/psi/zpdfops.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2001-2022 Artifex Software, Inc. +/* Copyright (C) 2001-2023 Artifex Software, Inc. All Rights Reserved. This software is provided AS-IS with no warranty, either express or @@ -1197,8 +1197,7 @@ static int zpdfi_glyph_index(gs_font *pfont, byte *str, uint size, uint *glyph) static int param_value_get_namelist(gs_memory_t *ps_mem, pdf_context *ctx, ref *pvalueref, char ***pstrlist) { - char *data; - uint size, count; + uint count; char **strlist = NULL; ref lval, sref; int code; |