devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=0d28a1154304987a5069393d0cb903aad00b6508

commit 0d28a1154304987a5069393d0cb903aad00b6508
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Tue Jun 9 09:02:19 2015 -0400

    ecore-x: Fix warning of defined but unused function
    
    Summary: The _ecore_x_input_grabbed_is function is only used if we
    have support for XI2_2, so move the defines around a little to fix a
    compiler warning.
    
    @fix
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/lib/ecore_x/xlib/ecore_x_xi2.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/ecore_x/xlib/ecore_x_xi2.c 
b/src/lib/ecore_x/xlib/ecore_x_xi2.c
index fc7daf9..9298bce 100644
--- a/src/lib/ecore_x/xlib/ecore_x_xi2.c
+++ b/src/lib/ecore_x/xlib/ecore_x_xi2.c
@@ -276,10 +276,10 @@ _ecore_x_input_raw_handler(XEvent *xevent)
 #endif /* ifdef ECORE_XI2 */
 }
 
+#ifdef ECORE_XI2_2
 static Eina_Bool
 _ecore_x_input_grabbed_is(int deviceId)
 {
-#ifdef ECORE_XI2
    void *id;
    Eina_List *l;
 
@@ -288,10 +288,10 @@ _ecore_x_input_grabbed_is(int deviceId)
         if (deviceId == (intptr_t)id)
           return EINA_TRUE;
      }
-#endif /* ifdef ECORE_XI2 */
 
    return EINA_FALSE;
 }
+#endif /* ifdef ECORE_XI2_2 */
 
 void
 _ecore_x_input_mouse_handler(XEvent *xevent)

-- 


Reply via email to