ecore/gesture: Don't do dead assignments after return.
authorstefan <stefan@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 26 Jun 2012 10:55:09 +0000 (10:55 +0000)
committerstefan <stefan@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 26 Jun 2012 10:55:09 +0000 (10:55 +0000)
Raster added this for some unused param warnings in 65142. Now we have complains about dead
assigments and I hope this finally mutes both of them. Thanks to Tom for pointing it out.

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

src/lib/ecore_x/xlib/ecore_x_gesture.c

index 3c390a9..f7d95a0 100644 (file)
@@ -56,9 +56,9 @@ ecore_x_gesture_events_select(Ecore_X_Window win,
 
    return EINA_TRUE;
 #else /* ifdef ECORE_XGESTURE */
+   win __EINA_UNUSED__;
+   mask __EINA_UNUSED__;
    return EINA_FALSE;
-   win = 0;
-   mask = 0;
 #endif /* ifdef ECORE_XGESTURE */
 }
 
@@ -80,8 +80,8 @@ ecore_x_gesture_events_selected_get(Ecore_X_Window win)
 
    return mask;
 #else /* ifdef ECORE_XGESTURE */
+   win __EINA_UNUSED__;
    return ECORE_X_GESTURE_EVENT_MASK_NONE;
-   win = 0;
 #endif /* ifdef ECORE_XGESTURE */
 }
 
@@ -102,10 +102,10 @@ ecore_x_gesture_event_grab(Ecore_X_Window win,
 
    return EINA_TRUE;
 #else /* ifdef ECORE_XGESTURE */
+   win __EINA_UNUSED__;
+   type __EINA_UNUSED__;
+   num_fingers __EINA_UNUSED__;
    return EINA_FALSE;
-   win = 0;
-   type = 0;
-   num_fingers = 0;
 #endif /* ifdef ECORE_XGESTURE */
 }
 
@@ -128,10 +128,10 @@ ecore_x_gesture_event_ungrab(Ecore_X_Window win,
 
    return EINA_TRUE;
 #else /* ifdef ECORE_XGESTURE */
+   win __EINA_UNUSED__;
+   type __EINA_UNUSED__;
+   num_fingers __EINA_UNUSED__;
    return EINA_FALSE;
-   win = 0;
-   type = 0;
-   num_fingers = 0;
 #endif /* ifdef ECORE_XGESTURE */
 }