summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Sharp <ken.sharp@artifex.com>2018-08-09 11:25:57 +0100
committerKen Sharp <ken.sharp@artifex.com>2018-08-09 16:05:56 +0100
commit55cb739c1134882c6abaca6264a8d8bccf24dedf (patch)
tree51a5409e329ec6449c4a0a67045b82f19bdfd470
parent5f8ac1413077051fd0f559b7b2d5f36b10d58bfe (diff)
downloadghostpdl-55cb739c1134882c6abaca6264a8d8bccf24dedf.tar.gz
Fix a couple of compiler warnings
Part of the subclassing updates.
-rw-r--r--devices/gdevdsp.c2
-rw-r--r--devices/vector/gdevpdfo.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/devices/gdevdsp.c b/devices/gdevdsp.c
index 50d9d5599..bbf99de77 100644
--- a/devices/gdevdsp.c
+++ b/devices/gdevdsp.c
@@ -1498,7 +1498,7 @@ display_set_separations(gx_device_display *dev)
}
}
while(dev->parent)
- dev = dev->parent;
+ dev = (gx_device_display *)dev->parent;
(*dev->callback->display_separation)(dev->pHandle, dev,
comp_num, name,
diff --git a/devices/vector/gdevpdfo.c b/devices/vector/gdevpdfo.c
index eed6c350b..2c8079954 100644
--- a/devices/vector/gdevpdfo.c
+++ b/devices/vector/gdevpdfo.c
@@ -2014,7 +2014,7 @@ cos_write_stream_close(stream *s)
gx_device_pdf *target_dev = ss->pdev;
while (target_dev->child != NULL)
- target_dev = target_dev->child;
+ target_dev = (gx_device_pdf *)target_dev->child;
sflush(s);
status = s_close_filters(&ss->target, target_dev->streams.strm);