Ecore_X(cb): Fix compiler warnings when building without gesture
authordevilhorns <devilhorns@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 8 Nov 2011 21:09:33 +0000 (21:09 +0000)
committerdevilhorns <devilhorns@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 8 Nov 2011 21:09:33 +0000 (21:09 +0000)
support.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@64958 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore_x/xcb/ecore_xcb_gesture.c

index b6ac810..263dade 100644 (file)
@@ -64,9 +64,16 @@ ecore_x_gesture_supported(void)
    return _gesture_available;
 }
 
+#ifdef ECORE_XCB_XGESTURE
 EAPI Eina_Bool
 ecore_x_gesture_events_select(Ecore_X_Window win,
                               Ecore_X_Gesture_Event_Mask mask)
+#else
+EAPI Eina_Bool
+ecore_x_gesture_events_select(Ecore_X_Window win __UNUSED__,
+                              Ecore_X_Gesture_Event_Mask mask __UNUSED__)
+#endif
+
 {
 #ifdef ECORE_XCB_XGESTURE
    if (!_gesture_available) return EINA_FALSE;
@@ -82,8 +89,13 @@ ecore_x_gesture_events_select(Ecore_X_Window win,
 #endif
 }
 
+#ifdef ECORE_XCB_XGESTURE
 EAPI Ecore_X_Gesture_Event_Mask
 ecore_x_gesture_events_selected_get(Ecore_X_Window win)
+#else
+EAPI Ecore_X_Gesture_Event_Mask
+ecore_x_gesture_events_selected_get(Ecore_X_Window win __UNUSED__)
+#endif
 {
 #ifdef ECORE_XCB_XGESTURE
    xcb_gesture_get_selected_events_cookie_t ecookie;
@@ -110,10 +122,17 @@ ecore_x_gesture_events_selected_get(Ecore_X_Window win)
 #endif
 }
 
+#ifdef ECORE_XCB_XGESTURE
 EAPI Eina_Bool
 ecore_x_gesture_event_grab(Ecore_X_Window win,
                            Ecore_X_Gesture_Event_Type type,
                            int num_fingers)
+#else
+EAPI Eina_Bool
+ecore_x_gesture_event_grab(Ecore_X_Window win __UNUSED__,
+                           Ecore_X_Gesture_Event_Type type __UNUSED__,
+                           int num_fingers __UNUSED__)
+#endif
 {
 #ifdef ECORE_XCB_XGESTURE
    Eina_Bool status = EINA_TRUE;
@@ -143,10 +162,17 @@ ecore_x_gesture_event_grab(Ecore_X_Window win,
 #endif
 }
 
+#ifdef ECORE_XCB_XGESTURE
 EAPI Eina_Bool
 ecore_x_gesture_event_ungrab(Ecore_X_Window win,
                              Ecore_X_Gesture_Event_Type type,
                              int num_fingers)
+#else
+EAPI Eina_Bool
+ecore_x_gesture_event_ungrab(Ecore_X_Window win __UNUSED__,
+                             Ecore_X_Gesture_Event_Type type __UNUSED__,
+                             int num_fingers __UNUSED__)
+#endif
 {
 #ifdef ECORE_XCB_XGESTURE
    Eina_Bool status = EINA_TRUE;