[cairo] [PATCH 6/8] xml: constify source objects for emit routines

Chris Wilson chris at chris-wilson.co.uk
Sat Feb 22 03:04:30 PST 2014


On Sat, Feb 22, 2014 at 02:07:07AM +0000, Bryce W. Harrington wrote:
> This quells the following warnings:
> 
>   src/cairo-xml-surface.c:576:5: warning: passing argument 2 of
>   ‘_cairo_xml_surface_emit_clip_boxes’ discards ‘const’ qualifier from
>   pointer target type
>   src/cairo-xml-surface.c:462:1: note: expected ‘struct cairo_clip_t
>   *’ but argument is of type ‘const struct cairo_clip_t *’
> 
> Most of the cairo_xml*emit* routines const their source objects;
> these should follow suit.
> 
> Signed-off-by: Bryce Harrington <b.harrington at samsung.com>
Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the cairo mailing list