summaryrefslogtreecommitdiff
path: root/cups
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2020-03-31 15:17:40 +0100
committerRobin Watts <Robin.Watts@artifex.com>2020-03-31 17:40:16 +0100
commit295bcef3b977c12885e30fdbae326f63d0771caa (patch)
tree9e46ded22bec90028f5443e61bdb14971a546e60 /cups
parenta32c6fdce5fab7d5918d02d30a4cf6696af58db3 (diff)
downloadghostpdl-295bcef3b977c12885e30fdbae326f63d0771caa.tar.gz
Squash 'set but unused' warning in gdevcups.
Diffstat (limited to 'cups')
-rw-r--r--cups/gdevcups.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/cups/gdevcups.c b/cups/gdevcups.c
index 8fa48860f..4ed1a980b 100644
--- a/cups/gdevcups.c
+++ b/cups/gdevcups.c
@@ -3117,8 +3117,10 @@ cups_put_params(gx_device *pdev, /* I - Device info */
ppd_size_t *best_size = NULL;
int size_matched = 0,
margins_matched = 0,
- imageable_area_matched = 0,
- name_requested_matched = 0;
+ imageable_area_matched = 0;
+#ifdef CUPS_DEBUG
+ int name_requested_matched = 0;
+#endif
float long_edge_mismatch, short_edge_mismatch;
gs_param_string icc_pro_dummy;
int old_cmps = cups->color_info.num_components;
@@ -3501,7 +3503,9 @@ cups_put_params(gx_device *pdev, /* I - Device info */
size_matched = 0;
margins_matched = 0;
imageable_area_matched = 0;
+#ifdef CUPS_DEBUG
name_requested_matched = 0;
+#endif
long_edge_mismatch =
fabs(cups->MediaSize[1] - size->length)/size->length +
@@ -3579,7 +3583,11 @@ cups_put_params(gx_device *pdev, /* I - Device info */
if (size_matched || imageable_area_matched) {
if (!strcasecmp(cups->pageSizeRequested, size->name))
+ {
+#ifdef CUPS_DEBUG
name_requested_matched = 1;
+#endif
+ }
else
score -= 1000;
}
@@ -3674,7 +3682,9 @@ cups_put_params(gx_device *pdev, /* I - Device info */
size_matched = 0;
margins_matched = 0;
imageable_area_matched = 0;
+#ifdef CUPS_DEBUG
name_requested_matched = 0;
+#endif
long_edge_mismatch =
fabs(cups->MediaSize[0] - size->length)/size->length +
@@ -3752,7 +3762,11 @@ cups_put_params(gx_device *pdev, /* I - Device info */
if (size_matched || imageable_area_matched) {
if (!strcasecmp(cups->pageSizeRequested, size->name))
+ {
+#ifdef CUPS_DEBUG
name_requested_matched = 1;
+#endif
+ }
else
score -= 1000;
}