From 562c47fc21b9029ebff29b53d2be590df4329264 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 28 May 2014 12:51:18 +0100 Subject: Silence CLang (almost) Fix up all the warnings about implicit enum conversions. The container_of() macro remains defunct. Signed-off-by: Chris Wilson --- src/sna/sna_render.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/sna/sna_render.c') diff --git a/src/sna/sna_render.c b/src/sna/sna_render.c index fd73b090..cbec168c 100644 --- a/src/sna/sna_render.c +++ b/src/sna/sna_render.c @@ -1668,7 +1668,8 @@ do_fixup: dst = pixman_image_create_bits(channel->pict_format, w, h, ptr, channel->bo->pitch); else - dst = pixman_image_create_bits(picture->format, w, h, NULL, 0); + dst = pixman_image_create_bits((pixman_format_code_t)picture->format, + w, h, NULL, 0); if (!dst) { kgem_bo_destroy(&sna->kgem, channel->bo); return 0; @@ -1855,7 +1856,7 @@ sna_render_picture_convert(struct sna *sna, if (!sna_pixmap_move_to_cpu(pixmap, MOVE_READ)) return 0; - src = pixman_image_create_bits(picture->format, + src = pixman_image_create_bits((pixman_format_code_t)picture->format, pixmap->drawable.width, pixmap->drawable.height, pixmap->devPrivate.ptr, -- cgit v1.2.3