diff options
author | Robin Watts <robin.watts@artifex.com> | 2016-01-04 12:44:43 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-01-04 12:58:54 +0000 |
commit | 240b8f048945a129aacb1e84c7e7b66cf0d5bff1 (patch) | |
tree | b28f750b51d0c108d4e48f898f6598da96533ac5 /devices/gdevxalt.c | |
parent | 8db551f3a3e949035889fcb63188764ca61ab8c1 (diff) | |
download | ghostpdl-240b8f048945a129aacb1e84c7e7b66cf0d5bff1.tar.gz |
Squash Warnings: Unused Var/Var set but not used.
Diffstat (limited to 'devices/gdevxalt.c')
-rw-r--r-- | devices/gdevxalt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/devices/gdevxalt.c b/devices/gdevxalt.c index 9e3f5b664..f4be40ef3 100644 --- a/devices/gdevxalt.c +++ b/devices/gdevxalt.c @@ -611,9 +611,10 @@ static gx_color_index x_cmyk_map_cmyk_color(gx_device * dev, const gx_color_value cv[]) { int shift = dev->color_info.depth >> 2; - gx_color_index pixel = cv[0] >> (gx_color_value_bits - shift); + gx_color_index pixel; gx_color_value c, m, y, k; c = cv[0]; m = cv[1]; y = cv[2]; k = cv[3]; + pixel = c >> (gx_color_value_bits - shift); pixel = (pixel << shift) | (m >> (gx_color_value_bits - shift)); pixel = (pixel << shift) | (y >> (gx_color_value_bits - shift)); return (pixel << shift) | (k >> (gx_color_value_bits - shift)); |