summaryrefslogtreecommitdiff
path: root/gs/base/gdevtsep.c
diff options
context:
space:
mode:
authorChris Liddell <chris.liddell@artifex.com>2011-08-12 18:19:59 +0100
committerChris Liddell <chris.liddell@artifex.com>2011-08-12 18:19:59 +0100
commit5d45b3c3bc664f7e8a81e85c812dd100543d4cd9 (patch)
tree6ea94f08c914238ffff278b2aa593706bc62aa45 /gs/base/gdevtsep.c
parent78fe552263a621714c8335ec46f4493121856192 (diff)
downloadghostpdl-5d45b3c3bc664f7e8a81e85c812dd100543d4cd9.tar.gz
Bug 690054: fix a bunch of warnings in base/
A couple were real functional problems (left-overs from old API versions), the rest were the usual benign but irritating noise. No cluster differences.
Diffstat (limited to 'gs/base/gdevtsep.c')
-rw-r--r--gs/base/gdevtsep.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/gs/base/gdevtsep.c b/gs/base/gdevtsep.c
index 5497c3e18..aef616c0e 100644
--- a/gs/base/gdevtsep.c
+++ b/gs/base/gdevtsep.c
@@ -385,10 +385,13 @@ static dev_proc_put_params(tiffsep_put_params);
static dev_proc_print_page(tiffsep_print_page);
static dev_proc_get_color_mapping_procs(tiffsep_get_color_mapping_procs);
static dev_proc_get_color_comp_index(tiffsep_get_color_comp_index);
-static dev_proc_encode_color(tiffsep_encode_color);
-static dev_proc_decode_color(tiffsep_decode_color);
+#if USE_COMPRESSED_ENCODING
static dev_proc_encode_color(tiffsep_encode_compressed_color);
static dev_proc_decode_color(tiffsep_decode_compressed_color);
+#else
+static dev_proc_encode_color(tiffsep_encode_color);
+#endif
+static dev_proc_decode_color(tiffsep_decode_color);
static dev_proc_update_spot_equivalent_colors(tiffsep_update_spot_equivalent_colors);
static dev_proc_ret_devn_params(tiffsep_ret_devn_params);
static dev_proc_open_device(tiffsep1_prn_open);
@@ -697,6 +700,7 @@ tiffsep_get_color_mapping_procs(const gx_device * dev)
return &tiffsep_cm_procs;
}
+#if USE_COMPRESSED_ENCODING
/*
* Encode a list of colorant values into a gx_color_index_value.
* With 64 bit gx_color_index values, we compress the colorant values. This
@@ -719,7 +723,7 @@ tiffsep_decode_compressed_color(gx_device * dev, gx_color_index color, gx_color_
return devn_decode_compressed_color(dev, color, out,
&(((tiffsep_device *)dev)->devn_params));
}
-
+#else
/*
* Encode a list of colorant values into a gx_color_index_value.
* With 32 bit gx_color_index values, we simply pack values.
@@ -739,6 +743,7 @@ tiffsep_encode_color(gx_device *dev, const gx_color_value colors[])
}
return (color == gx_no_color_index ? color ^ 1 : color);
}
+#endif
/*
* Decode a gx_color_index value back to a list of colorant values.