devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=5ffcaf605ef55130fd93127addd4737bdabf9a60

commit 5ffcaf605ef55130fd93127addd4737bdabf9a60
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Tue Jun 9 09:00:06 2015 -0400

    ecore-x: Fix warning of unused variable
    
    Summary: We only need the 'devid' variable if we have support for XI2_2.
    
    @fix
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/lib/ecore_x/xlib/ecore_x_xi2.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/lib/ecore_x/xlib/ecore_x_xi2.c 
b/src/lib/ecore_x/xlib/ecore_x_xi2.c
index cd6f5dd..fc7daf9 100644
--- a/src/lib/ecore_x/xlib/ecore_x_xi2.c
+++ b/src/lib/ecore_x/xlib/ecore_x_xi2.c
@@ -388,13 +388,13 @@ _ecore_x_input_multi_handler(XEvent *xevent)
 #ifdef ECORE_XI2
    if (xevent->type != GenericEvent) return;
    XIDeviceEvent *evd = (XIDeviceEvent *)(xevent->xcookie.data);
-   int devid = evd->deviceid;
 
    switch (xevent->xcookie.evtype)
      {
 #ifdef ECORE_XI2_2
       case XI_TouchUpdate:
           {
+             int devid = evd->deviceid;
              int i = _ecore_x_input_touch_index_get(devid, evd->detail, 
XI_TouchUpdate);
              if ((i == 0) && (evd->flags & XITouchEmulatingPointer)) return;
              INF("Handling XI_TouchUpdate");
@@ -416,6 +416,7 @@ _ecore_x_input_multi_handler(XEvent *xevent)
 
       case XI_TouchBegin:
           {
+             int devid = evd->deviceid;
              int i = _ecore_x_input_touch_index_get(devid, evd->detail, 
XI_TouchBegin);
              if ((i == 0) && (evd->flags & XITouchEmulatingPointer)) return;
              INF("Handling XI_TouchBegin");
@@ -439,6 +440,7 @@ _ecore_x_input_multi_handler(XEvent *xevent)
 
       case XI_TouchEnd:
           {
+             int devid = evd->deviceid;
              int i = _ecore_x_input_touch_index_get(devid, evd->detail, 
XI_TouchEnd);
              if ((i == 0) && (evd->flags & XITouchEmulatingPointer))
                {

-- 


Reply via email to