diff options
author | Chris Liddell <chris.liddell@artifex.com> | 2023-01-04 11:17:26 +0000 |
---|---|---|
committer | Chris Liddell <chris.liddell@artifex.com> | 2023-01-04 12:41:49 +0000 |
commit | 2414331e669dde44c69d2a82c00a4f58cb148aa0 (patch) | |
tree | 0d23e554c5da1669bd17a210cae7c8c3451b1340 /contrib | |
parent | 8ebb3eb6ac1d61728c1538fc3fc1d174a0c56969 (diff) | |
download | ghostpdl-2414331e669dde44c69d2a82c00a4f58cb148aa0.tar.gz |
Fix compiler warnings in contrib devices
Function protoype mismatch warnings.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/gdevcd8.c | 10 | ||||
-rw-r--r-- | contrib/gdevdj9.c | 15 | ||||
-rw-r--r-- | contrib/opvp/gdevopvp.c | 2 | ||||
-rw-r--r-- | contrib/pcl3/eprn/eprnrend.c | 2 |
4 files changed, 17 insertions, 12 deletions
diff --git a/contrib/gdevcd8.c b/contrib/gdevcd8.c index bb1d26448..217d2a178 100644 --- a/contrib/gdevcd8.c +++ b/contrib/gdevcd8.c @@ -1180,10 +1180,10 @@ static void gx_device_printer * pdev, struct error_val_field *error_values); static int - do_gcr(int bytecount, byte * inbyte, const byte * kvalues, - const byte * cvalues, const byte * mvalues, - const byte * yvalues, const int *kcorrect, - word * inword); +do_gcr(int bytecount, byte * inbyte, const byte kvalues[256], + const byte cvalues[256], const byte mvalues[256], + const byte yvalues[256], const int kcorrect[256], + word * inword); /* UNUSED *static int @@ -1209,7 +1209,7 @@ static void do_gamma(float mastergamma, float gammaval, byte * values); #endif static void - do_black_correction(float kvalue, int *kcorrect); +do_black_correction(float kvalue, int kcorrect[256]); static void init_data_structure(gx_device_printer * pdev, diff --git a/contrib/gdevdj9.c b/contrib/gdevdj9.c index 86f9fea26..0a96ba3cd 100644 --- a/contrib/gdevdj9.c +++ b/contrib/gdevdj9.c @@ -780,9 +780,12 @@ do_floyd_steinberg(int scan, int cscan, int plane_size, struct error_val_field *error_values); static int -do_gcr(int bytecount, byte * inbyte, const byte * kvalues, - const byte * cvalues, const byte * mvalues, - const byte * yvalues, const int *kcorrect); +do_gcr(int bytecount, + byte * inbyte, + const byte kvalues[256], + const byte cvalues[256], + const byte mvalues[256], + const byte yvalues[256], const int kcorrect[256]); static void send_scan_lines(gx_device_printer * pdev, @@ -791,9 +794,11 @@ send_scan_lines(gx_device_printer * pdev, struct error_val_field *error_values, const Gamma * gamma, gp_file * prn_stream); -static void do_gamma(float mastergamma, float gammaval, byte * values); +static void +do_gamma(float mastergamma, float gammaval, byte values[256]); -static void do_black_correction(float kvalue, int *kcorrect); +static void +do_black_correction(float kvalue, int kcorrect[256]); static void init_data_structure(gx_device_printer * pdev, diff --git a/contrib/opvp/gdevopvp.c b/contrib/opvp/gdevopvp.c index 5f20cac7e..74200cf9d 100644 --- a/contrib/opvp/gdevopvp.c +++ b/contrib/opvp/gdevopvp.c @@ -220,7 +220,7 @@ static void opvp_get_initial_matrix(gx_device *, gs_matrix *); static int opvp_output_page(gx_device *, int, int); static int opvp_close(gx_device *); static gx_color_index opvp_map_rgb_color(gx_device *, const gx_color_value *); /* modified for gs 8.15 */ -static int opvp_map_color_rgb(gx_device *, gx_color_index, gx_color_value *); +static int opvp_map_color_rgb(gx_device *dev, gx_color_index color, gx_color_value prgb[3]); static int opvp_copy_mono(gx_device *, const byte *, int, int, gx_bitmap_id, int, int, int, int, gx_color_index, gx_color_index); diff --git a/contrib/pcl3/eprn/eprnrend.c b/contrib/pcl3/eprn/eprnrend.c index 2da1f9c61..f6b596227 100644 --- a/contrib/pcl3/eprn/eprnrend.c +++ b/contrib/pcl3/eprn/eprnrend.c @@ -401,7 +401,7 @@ gx_color_index eprn_map_rgb_color_for_CMY_or_K_max(gx_device *device, ******************************************************************************/ int eprn_map_color_rgb(gx_device *device, gx_color_index color, - gx_color_value rgb[]) + gx_color_value rgb[3]) { #ifdef EPRN_TRACE if_debug1(EPRN_TRACE_CHAR, |