mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-08 10:18:02 +02:00
region: Cast to remove const to suppress compiler warnings.
airo-region.c: In function ‘cairo_region_intersect’: cairo-region.c:503: warning: passing argument 3 of ‘pixman_region32_intersect’ discards qualifiers from pointer target type /usr/local/include/pixman-1/pixman.h:518: note: expected ‘struct pixman_region32_t *’ but argument is of type ‘const struct pixman_region32_t *’ cairo-region.c: In function ‘cairo_region_union’: cairo-region.c:566: warning: passing argument 3 of ‘pixman_region32_union’ discards qualifiers from pointer target type /usr/local/include/pixman-1/pixman.h:521: note: expected ‘struct pixman_region32_t *’ but argument is of type ‘const struct pixman_region32_t *’
This commit is contained in:
parent
8c72122df5
commit
3c9e5d9792
1 changed files with 2 additions and 2 deletions
|
|
@ -500,7 +500,7 @@ cairo_region_intersect (cairo_region_t *dst, const cairo_region_t *other)
|
|||
if (other->status)
|
||||
return _cairo_region_set_error (dst, other->status);
|
||||
|
||||
if (! pixman_region32_intersect (&dst->rgn, &dst->rgn, &other->rgn))
|
||||
if (! pixman_region32_intersect (&dst->rgn, &dst->rgn, CONST_CAST &other->rgn))
|
||||
return _cairo_region_set_error (dst, CAIRO_STATUS_NO_MEMORY);
|
||||
|
||||
return CAIRO_STATUS_SUCCESS;
|
||||
|
|
@ -563,7 +563,7 @@ cairo_region_union (cairo_region_t *dst,
|
|||
if (other->status)
|
||||
return _cairo_region_set_error (dst, other->status);
|
||||
|
||||
if (! pixman_region32_union (&dst->rgn, &dst->rgn, &other->rgn))
|
||||
if (! pixman_region32_union (&dst->rgn, &dst->rgn, CONST_CAST &other->rgn))
|
||||
return _cairo_region_set_error (dst, CAIRO_STATUS_NO_MEMORY);
|
||||
|
||||
return CAIRO_STATUS_SUCCESS;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue