diff options
author | Chris Liddell <chris.liddell@artifex.com> | 2017-09-05 16:53:52 +0100 |
---|---|---|
committer | Chris Liddell <chris.liddell@artifex.com> | 2017-09-07 13:37:48 +0100 |
commit | ff5828a537fbf8b58095f5147b2acd59a6330941 (patch) | |
tree | 8ca757d70a87fa078830dffc045f7130bd727a2f | |
parent | 6846f1d5d8c7f5512fc385b3b9e2fa95cc720c53 (diff) | |
download | ghostpdl-ff5828a537fbf8b58095f5147b2acd59a6330941.tar.gz |
Compiler warning: discaring const
The fix for coverity ID# 127201 introduced a compiler warning due to an
accessor macro (ctm_only) implicitly adding const. Make the local variable
const, too.
-rw-r--r-- | base/gxipixel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/base/gxipixel.c b/base/gxipixel.c index 21b3c3508..edd40c52d 100644 --- a/base/gxipixel.c +++ b/base/gxipixel.c @@ -427,7 +427,7 @@ gx_image_enum_begin(gx_device * dev, const gs_gstate * pgs, { gs_rect rect, rect_out; gs_matrix mi; - gs_matrix *m = pgs != NULL ? &ctm_only(pgs) : NULL; + const gs_matrix *m = pgs != NULL ? &ctm_only(pgs) : NULL; gs_fixed_rect obox; gs_int_rect irect; if (m == NULL || (code = gs_matrix_invert(m, &mi)) < 0 || |