Fix warnings

This commit is contained in:
Behdad Esfahbod 2013-10-27 23:52:26 +01:00
parent c2bc818706
commit c77d1ade68
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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. */