[PATCH 09/16] dmx: compiler warning fix (mixed declarations + code)

Peter Hutterer peter.hutterer at who-t.net
Wed Sep 9 23:54:15 PDT 2009


Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 hw/dmx/input/dmxeq.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/hw/dmx/input/dmxeq.c b/hw/dmx/input/dmxeq.c
index 33e8771..3c2b44c 100644
--- a/hw/dmx/input/dmxeq.c
+++ b/hw/dmx/input/dmxeq.c
@@ -158,6 +158,7 @@ void dmxeqEnqueue(DeviceIntPtr pDev, xEvent *e)
 {
     HWEventQueueType oldtail, newtail;
     Bool             isMotion;
+    deviceKeyButtonPointer *ev;
 
     oldtail                               = dmxEventQueue.tail;
     isMotion                              = e->u.u.type == MotionNotify;
@@ -182,7 +183,7 @@ void dmxeqEnqueue(DeviceIntPtr pDev, xEvent *e)
     dmxEventQueue.events[oldtail].pDev    = pDev;
                             /* If this is an XInput event, store the
                              * valuator event, too */
-    deviceKeyButtonPointer *ev = (deviceKeyButtonPointer *)e;
+    ev = (deviceKeyButtonPointer *)e;
     if (e->u.u.type >= LASTEvent && (ev->deviceid & MORE_EVENTS))
         dmxEventQueue.events[oldtail].valuator = *(deviceValuator *)(ev+1);
 
-- 
1.6.3.rc1.2.g0164.dirty



More information about the xorg-devel mailing list