diff options
author | Chris Liddell <chris.liddell@artifex.com> | 2023-01-04 11:19:52 +0000 |
---|---|---|
committer | Chris Liddell <chris.liddell@artifex.com> | 2023-01-04 15:09:44 +0000 |
commit | 4662fae9bec61c34b47310b6600f3efe035f5e4b (patch) | |
tree | 27de70e6470dc2d01e2e8f302cf12ab438ae57b3 /devices/gdevplan.c | |
parent | 2414331e669dde44c69d2a82c00a4f58cb148aa0 (diff) | |
download | ghostpdl-4662fae9bec61c34b47310b6600f3efe035f5e4b.tar.gz |
Fix compiler warnings in devices/
Mismatched function prototype warnings, and one uninitialised variable.
Diffstat (limited to 'devices/gdevplan.c')
-rw-r--r-- | devices/gdevplan.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/devices/gdevplan.c b/devices/gdevplan.c index abef82957..a8b06ee01 100644 --- a/devices/gdevplan.c +++ b/devices/gdevplan.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 @@ -438,7 +438,7 @@ plang_encode_color(gx_device * pdev, const gx_color_value cv[]) /* Map a gray value back to an RGB color. */ static int plang_decode_color(gx_device * dev, gx_color_index color, - gx_color_value prgb[3]) + gx_color_value prgb[]) { gx_color_value gray = color * gx_max_color_value / dev->color_info.max_gray; @@ -452,7 +452,7 @@ plang_decode_color(gx_device * dev, gx_color_index color, /* Map an rgb color tuple back to an RGB color. */ static int plan_decode_color(gx_device * dev, gx_color_index color, - gx_color_value prgb[3]) + gx_color_value prgb[]) { uint bitspercolor = dev->color_info.depth / 3; uint colormask = (1 << bitspercolor) - 1; @@ -470,7 +470,7 @@ plan_decode_color(gx_device * dev, gx_color_index color, /* Map a cmyk color tuple back to an gs color. */ static int planc_decode_color(gx_device * dev, gx_color_index color, - gx_color_value prgb[4]) + gx_color_value prgb[]) { uint bitspercolor = dev->color_info.depth / 4; uint colormask = (1 << bitspercolor) - 1; |