[gs-commits] ghostpdl branch, pdfi, updated. jbig2dec-0.14-2464-gcdb5b2b
[email protected] (Nancy Durgin) Thu, 14 Nov 2019 19:28:33 +0000 (UTC)
| Newsgroups | gmane.comp.printing.ghostscript.cvs |
|---|---|
| Message-ID | <[email protected]> |
The ghostpdl branch, pdfi has been updated
via cdb5b2b0f7f662695061092e56ad963b7bce8897 (commit)
from 0c029d97751e73b3b91b7e0b5f7ae0107e3c36cb (commit)
----------------------------------------------------------------------
commit cdb5b2b0f7f662695061092e56ad963b7bce8897
Author: Nancy Durgin <[email protected]>
Date: Thu Nov 14 11:10:00 2019 -0800
Cleanup a bunch of compiler warnings
diff --git a/pdf/ghostpdf.c b/pdf/ghostpdf.c
index f518362..c610fbf 100644
--- a/pdf/ghostpdf.c
+++ b/pdf/ghostpdf.c
@@ -477,7 +477,7 @@ static int pdfi_free_name_table(pdf_context *ctx)
int pdfi_name_from_index(const gs_memory_t *mem, gs_separation_name index, unsigned char **name, unsigned int *len)
{
pdf_context *ctx = (pdf_context *)mem->gs_lib_ctx;
- pdfi_name_entry *next = NULL, *e = (pdfi_name_entry *)ctx->name_table;
+ pdfi_name_entry *e = (pdfi_name_entry *)ctx->name_table;
while (e != NULL) {
if (e->index == index) {
diff --git a/pdf/pdf_func.c b/pdf/pdf_func.c
index 298d789..9a8fef3 100644
--- a/pdf/pdf_func.c
+++ b/pdf/pdf_func.c
@@ -696,7 +696,6 @@ int pdfi_build_halftone_function(pdf_context *ctx, gs_function_t ** ppfn, byte *
gs_function_PtCr_params_t params;
pdf_stream *function_stream = NULL;
int code;
- byte *data_source_buffer;
byte *ops = NULL;
unsigned int size;
float *pfloat;
diff --git a/pdf/pdf_gstate.c b/pdf/pdf_gstate.c
index 1cc1992..0ebcbe0 100644
--- a/pdf/pdf_gstate.c
+++ b/pdf/pdf_gstate.c
@@ -1436,7 +1436,7 @@ static int pdfi_do_halftone(pdf_context *ctx, pdf_dict *halftone_dict, pdf_dict
goto error;
}
- code = build_type1_halftone(ctx, halftone_dict, page_dict, pdht, phtc, "Default", 7);
+ code = build_type1_halftone(ctx, halftone_dict, page_dict, pdht, phtc, (char *)"Default", 7);
if (code < 0)
goto error;
diff --git a/pdf/pdf_pattern.c b/pdf/pdf_pattern.c
index a6f965c..34a15d9 100644
--- a/pdf/pdf_pattern.c
+++ b/pdf/pdf_pattern.c
@@ -73,6 +73,7 @@ pdfi_pattern_get_rect(pdf_context *ctx, pdf_array *array, gs_rect *rect)
return code;
}
+#if 0 /* Not currently using, not sure if needed (and it didn't work anyway) */
/* NULL Pattern */
static int
pdfi_setpattern_null(pdf_context *ctx, gs_client_color *cc)
@@ -98,6 +99,7 @@ pdfi_setpattern_null(pdf_context *ctx, gs_client_color *cc)
return code;
}
+#endif
/*
* Pattern lifetime management turns out to be more complex than we would ideally like. Although
Summary of changes:
pdf/ghostpdf.c | 2 +-
pdf/pdf_func.c | 1 -
pdf/pdf_gstate.c | 2 +-
pdf/pdf_pattern.c | 2 ++
4 files changed, 4 insertions(+), 3 deletions(-)