aboutsummaryrefslogtreecommitdiffstats
path: root/main/xcb-util-image/fix-c90-warnings.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/xcb-util-image/fix-c90-warnings.patch')
-rw-r--r--main/xcb-util-image/fix-c90-warnings.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/main/xcb-util-image/fix-c90-warnings.patch b/main/xcb-util-image/fix-c90-warnings.patch
new file mode 100644
index 0000000000..f9cfa85b6c
--- /dev/null
+++ b/main/xcb-util-image/fix-c90-warnings.patch
@@ -0,0 +1,33 @@
+From 7c2c36a1472941353a700bbac7dc351a92f42258 Mon Sep 17 00:00:00 2001
+From: Bart Massey <bart@cs.pdx.edu>
+Date: Fri, 23 Aug 2013 23:45:36 +0000
+Subject: fixed some compiler C90 warnings
+
+---
+diff --git a/image/test_xcb_image_shm.c b/image/test_xcb_image_shm.c
+index 76f7f71..3162a6e 100644
+--- a/image/test_xcb_image_shm.c
++++ b/image/test_xcb_image_shm.c
+@@ -58,6 +58,9 @@ main (int argc, char *argv[])
+ int screen_nbr;
+ xcb_generic_event_t *e;
+ uint8_t format;
++ xcb_image_t *img;
++ xcb_shm_query_version_reply_t *rep;
++ xcb_shm_segment_info_t shminfo;
+
+ /* Open the connexion to the X server and get the first screen */
+ c = xcb_connect (NULL, &screen_nbr);
+@@ -81,10 +84,6 @@ main (int argc, char *argv[])
+
+ /* Shm test */
+ printf ("shm test begin\n");
+- xcb_image_t *img = 0;
+- xcb_shm_query_version_reply_t *rep;
+- xcb_shm_segment_info_t shminfo;
+-
+ rep = xcb_shm_query_version_reply (c,
+ xcb_shm_query_version (c),
+ NULL);
+--
+cgit v0.9.0.2-2-gbebe