diff options
author | Timo Teräs <timo.teras@iki.fi> | 2013-10-11 13:16:23 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2013-10-11 13:29:28 +0000 |
commit | b5a32f28587a8590a6358784dd85fcb3f9d77ee2 (patch) | |
tree | 85f67bd976b49ecab68d57865dfaec815a75cb1e /main/xcb-util-image/fix-c90-warnings-2.patch | |
parent | 6af44456f6c387081472f68f8f9d2950376161bd (diff) | |
download | aports-b5a32f28587a8590a6358784dd85fcb3f9d77ee2.tar.bz2 aports-b5a32f28587a8590a6358784dd85fcb3f9d77ee2.tar.xz |
main/xcb-util-image: fix compilation with new gcc
Diffstat (limited to 'main/xcb-util-image/fix-c90-warnings-2.patch')
-rw-r--r-- | main/xcb-util-image/fix-c90-warnings-2.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/main/xcb-util-image/fix-c90-warnings-2.patch b/main/xcb-util-image/fix-c90-warnings-2.patch new file mode 100644 index 0000000000..dfce496685 --- /dev/null +++ b/main/xcb-util-image/fix-c90-warnings-2.patch @@ -0,0 +1,28 @@ +--- xcb-util-image-0.3.9.orig/image/xcb_image.c ++++ xcb-util-image-0.3.9/image/xcb_image.c +@@ -324,6 +324,11 @@ + case XCB_IMAGE_FORMAT_XY_PIXMAP: + plane_mask &= xcb_mask(imrep->depth); + if (plane_mask != xcb_mask(imrep->depth)) { ++ int i; ++ uint32_t rpm = plane_mask; ++ uint8_t * src_plane = image->data; ++ uint8_t * dst_plane; ++ uint32_t size = image->height * image->stride; + xcb_image_t * tmp_image = + xcb_image_create_native(conn, width, height, format, + imrep->depth, 0, 0, 0); +@@ -333,12 +338,7 @@ + return 0; + } + +- int i; +- uint32_t rpm = plane_mask; +- uint8_t * src_plane = image->data; +- uint8_t * dst_plane = tmp_image->data; +- uint32_t size = image->height * image->stride; +- ++ dst_plane = tmp_image->data; + if (tmp_image->bit_order == XCB_IMAGE_ORDER_MSB_FIRST) + rpm = xcb_bit_reverse(plane_mask, imrep->depth); + for (i = 0; i < imrep->depth; i++) { |