From 240b8f048945a129aacb1e84c7e7b66cf0d5bff1 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Mon, 4 Jan 2016 12:44:43 +0000 Subject: Squash Warnings: Unused Var/Var set but not used. --- devices/gdevxalt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'devices/gdevxalt.c') 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)); -- cgit v1.2.1