aboutsummaryrefslogtreecommitdiffstats
path: root/main/xcb-util-image/fix-c90-warnings.patch
blob: f9cfa85b6c7db5223f6230bfe3f583d605c5c0f1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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