diff --git a/test/api/test-blob.c b/test/api/test-blob.c index 6759920da..bbb7e2efc 100644 --- a/test/api/test-blob.c +++ b/test/api/test-blob.c @@ -270,7 +270,7 @@ test_blob_subblob (fixture_t *fixture, gconstpointer user_data) if (mm == HB_MEMORY_MODE_DUPLICATE) { g_assert_cmpint (fixture->freed, ==, 1); - fixture->data = hb_blob_get_data (b, NULL); + fixture->data = (char *) hb_blob_get_data (b, NULL); } else { g_assert_cmpint (fixture->freed, ==, 0); } diff --git a/util/helper-cairo-ansi.cc b/util/helper-cairo-ansi.cc index f7c06609d..376bf2b83 100644 --- a/util/helper-cairo-ansi.cc +++ b/util/helper-cairo-ansi.cc @@ -57,7 +57,7 @@ helper_cairo_surface_write_to_ansi_stream (cairo_surface_t *surface, cairo_surface_reference (surface); unsigned int stride = cairo_image_surface_get_stride (surface); - const uint32_t *data = (uint32_t *) cairo_image_surface_get_data (surface); + const uint32_t *data = (uint32_t *) (void *) cairo_image_surface_get_data (surface); /* We don't have rows to spare on the terminal window... * Find the tight image top/bottom and only print in between. */