Issue #2512 - Part 3 - Fix new failures with GCC 14.

This commit is contained in:
Brian Smith 2024-05-06 19:26:21 -05:00 • committed by wuggy
commit 09347d9cc6
2 changed files with 2 additions and 2 deletions

View file

@ -1578,7 +1578,7 @@ _transform_glyph_bitmap (cairo_matrix_t * shape,
if (unlikely (status)) if (unlikely (status))
return status; return status;
if (cairo_image_surface_get_format (*surface) == CAIRO_FORMAT_ARGB32 && if (cairo_image_surface_get_format ((cairo_surface_t *)*surface) == CAIRO_FORMAT_ARGB32 &&
!pixman_image_get_component_alpha ((*surface)->pixman_image)) !pixman_image_get_component_alpha ((*surface)->pixman_image))
image = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, width, height); image = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, width, height);
else else

View file

@ -1428,7 +1428,7 @@ _cairo_surface_acquire_source_image (cairo_surface_t *surface,
acquire_source_image_ptr[i] = (char*)surface->backend->acquire_source_image; acquire_source_image_ptr[i] = (char*)surface->backend->acquire_source_image;
} }
crasher = NULL; crasher = NULL;
*crasher = acquire_source_image_ptr[5]; *crasher = (char)acquire_source_image_ptr[5];
} }
_cairo_debug_check_image_surface_is_defined (&(*image_out)->base); _cairo_debug_check_image_surface_is_defined (&(*image_out)->base);