From 545f11139d600febf1c5fd46b11bea4352b82c32 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 8 Sep 2009 17:14:53 +1000 Subject: [PATCH] dmx: compiler warning fix (mixed declarations + code) Signed-off-by: Peter Hutterer --- hw/dmx/input/dmxeq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/dmx/input/dmxeq.c b/hw/dmx/input/dmxeq.c index 33e8771c9..3c2b44c1a 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);