summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2011-04-26 12:37:14 +0100
committerRobin Watts <Robin.Watts@artifex.com>2011-04-26 12:37:14 +0100
commit11b5fb512393a6e9d9bdf6c076dc388ebd8c7c3f (patch)
tree3689fe0b02a289f1b233976fd91e73ce3419f149
parenta349c53ca01df5e425f25d1fa14d38c43d95b60c (diff)
Fix warnings (unused variables and missing cases in switches).
-rw-r--r--gs/base/gdevddrw.c2
-rw-r--r--gs/base/gstrans.c2
-rw-r--r--gs/base/gxblend1.c1
-rw-r--r--gs/base/gxiscale.c3
-rw-r--r--gs/base/gxstroke.c1
-rw-r--r--gs/psi/zicc.c3
6 files changed, 4 insertions, 8 deletions
diff --git a/gs/base/gdevddrw.c b/gs/base/gdevddrw.c
index fa3acfe02..6054283f6 100644
--- a/gs/base/gdevddrw.c
+++ b/gs/base/gdevddrw.c
@@ -768,7 +768,6 @@ gx_default_draw_thin_line(gx_device * dev,
fixed adjustx, fixed adjusty)
{
int ix, iy, itox, itoy;
- fixed tf;
int epsilon;
return_if_interrupt(dev->memory);
@@ -839,7 +838,6 @@ gx_default_draw_thin_line(gx_device * dev,
ix = fixed2int_var(fx0-epsilon);
itox = fixed2int_var(fx1-epsilon);
if (itox == ix) {
- int sy, sh;
/* Figure out the start/height, allowing for our "covers
* centre of pixel" rule. */
iy = fixed2int_var(fy0+fixed_half-fixed_epsilon);
diff --git a/gs/base/gstrans.c b/gs/base/gstrans.c
index a2334024b..b8ae22c53 100644
--- a/gs/base/gstrans.c
+++ b/gs/base/gstrans.c
@@ -553,7 +553,7 @@ gs_begin_transparency_mask(gs_state * pgs,
gs_pdf14trans_params_t params = { 0 };
gs_pdf14trans_params_t params_color = { 0 };
const int l = sizeof(params.Background[0]) * ptmp->Background_components;
- int i, num_components, code;
+ int i, code;
gs_color_space *blend_color_space;
gsicc_manager_t *icc_manager = pgs->icc_manager;
diff --git a/gs/base/gxblend1.c b/gs/base/gxblend1.c
index af3f52bd0..76f0b968c 100644
--- a/gs/base/gxblend1.c
+++ b/gs/base/gxblend1.c
@@ -441,7 +441,6 @@ pdf14_encode_color_tag(gx_device *dev, const gx_color_value colors[])
gx_color_index color;
int i;
int ncomp = dev->color_info.num_components;
- int tag_value;
/* Add in the tag information */
color = gs_current_object_tag(dev->memory);
diff --git a/gs/base/gxiscale.c b/gs/base/gxiscale.c
index 5444397d2..1ab3165fc 100644
--- a/gs/base/gxiscale.c
+++ b/gs/base/gxiscale.c
@@ -390,7 +390,6 @@ image_render_interpolate(gx_image_enum * penum, const byte * buffer,
This does not occur if color space was CIE encoded.
Then we do the decode during concretization which occurs
after interpolation */
- int bps = 1;
int dc = penum->spp;
const byte *pdata = bdata;
byte *psrc = (byte *) penum->line;
@@ -736,7 +735,6 @@ image_render_interpolate_icc(gx_image_enum * penum, const byte * buffer,
stream_cursor_write w;
unsigned char index_space;
byte *out = penum->line;
- bool need_decode = penum->icc_setup.need_decode;
bool must_halftone = penum->icc_setup.must_halftone;
bool has_transfer = penum->icc_setup.has_transfer;
bool islab = penum->icc_setup.is_lab;
@@ -791,7 +789,6 @@ image_render_interpolate_icc(gx_image_enum * penum, const byte * buffer,
This does not occur if color space was CIE encoded.
Then we do the decode during concretization which occurs
after interpolation */
- int bps = 1;
int dc = penum->spp;
const byte *pdata = bdata;
byte *psrc = (byte *) penum->line;
diff --git a/gs/base/gxstroke.c b/gs/base/gxstroke.c
index a99e4e966..b976924cd 100644
--- a/gs/base/gxstroke.c
+++ b/gs/base/gxstroke.c
@@ -696,7 +696,6 @@ gx_stroke_path_only_aux(gx_path * ppath, gx_path * to_path, gx_device * pdev,
bool is_closed = ((const subpath *)pseg)->is_closed;
partial_line pl, pl_prev, pl_first;
bool zero_length = true;
- gs_line_cap cap;
flags = nf_all_from_arc;
diff --git a/gs/psi/zicc.c b/gs/psi/zicc.c
index 80cedd27d..8a713cf8f 100644
--- a/gs/psi/zicc.c
+++ b/gs/psi/zicc.c
@@ -136,6 +136,9 @@ int seticc(i_ctx_t * i_ctx_p, int ncomps, ref *ICCdict, float *range_buff)
case gsNCHANNEL:
expected = 0;
break;
+ case gsNAMED: /* Silence warnings */
+ case gsUNDEFINED: /* Silence warnings */
+ break;
}
if (expected && ncomps != expected) {
rc_decrement(picc_profile,"seticc");