diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2023-05-15 17:21:20 +0100 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2023-05-15 17:42:44 +0100 |
commit | 63f2f72a5d94e9085525197745935b4954b346fa (patch) | |
tree | 6c023dbca83c04dc2e296427c12d8736b81f4b0f /devices | |
parent | d9162e337a7e6c3603700b42e37eb9aaaff69bf0 (diff) | |
download | ghostpdl-63f2f72a5d94e9085525197745935b4954b346fa.tar.gz |
Squash various warnings.
Unused variables, 'may be used unset' or implementations not
matching prototypes.
These show up now as the gcc version on the nodes has increased.
Diffstat (limited to 'devices')
-rw-r--r-- | devices/vector/gdevpdfd.c | 1 | ||||
-rw-r--r-- | devices/vector/gdevpdfk.c | 12 |
2 files changed, 6 insertions, 7 deletions
diff --git a/devices/vector/gdevpdfd.c b/devices/vector/gdevpdfd.c index 273e750af..e2c9c1a07 100644 --- a/devices/vector/gdevpdfd.c +++ b/devices/vector/gdevpdfd.c @@ -1418,7 +1418,6 @@ lcvd_fill_trapezoid(gx_device * dev, const gs_fixed_edge * left, const gs_fixed_edge * right, fixed ybot, fixed ytop, bool swap_axes, const gx_device_color * pdevc, gs_logical_operation_t lop) { - int code = 0; pdf_lcvd_t *cvd = (pdf_lcvd_t *)dev; if (cvd->mask != NULL) diff --git a/devices/vector/gdevpdfk.c b/devices/vector/gdevpdfk.c index 338b039f8..f9f374b96 100644 --- a/devices/vector/gdevpdfk.c +++ b/devices/vector/gdevpdfk.c @@ -243,12 +243,12 @@ const pdf_color_space_names_t base_names = { PDF_COLOR_SPACE_NAMES }; -int put_calgray_color_space(gx_device_pdf *pdev, const gs_gstate * pgs, const gs_color_space *pcs, cos_array_t *pca) +static int put_calgray_color_space(gx_device_pdf *pdev, const gs_gstate * pgs, const gs_color_space *pcs, cos_array_t *pca) { - int code, i; + int code; cos_value_t v; cos_dict_t *pcd; - cos_array_t *WP = NULL, *BP = NULL, *Gamma = NULL, *Matrix; + cos_array_t *WP = NULL, *BP = NULL; pcd = cos_dict_alloc(pdev, "write_calgray_color_space"); if (pcd == NULL) @@ -295,9 +295,9 @@ error: return code; } -int put_calrgb_color_space(gx_device_pdf *pdev, const gs_gstate * pgs, const gs_color_space *pcs, cos_array_t *pca) +static int put_calrgb_color_space(gx_device_pdf *pdev, const gs_gstate * pgs, const gs_color_space *pcs, cos_array_t *pca) { - int code, i; + int code; cos_value_t v; cos_dict_t *pcd = NULL; cos_array_t *WP = NULL, *BP = NULL, *Gamma = NULL, *Matrix; @@ -376,7 +376,7 @@ error: return code; } -int put_lab_color_space(gx_device_pdf *pdev, const gs_gstate * pgs, const gs_color_space *pcs, cos_array_t *pca) +static int put_lab_color_space(gx_device_pdf *pdev, const gs_gstate * pgs, const gs_color_space *pcs, cos_array_t *pca) { int code, i; cos_value_t v; |