better (but more boring)

#ifdef ***
int foo(int i)
{
}
#else
int foo(int i __UNUSED__)
{
}
#endif

Vincent

On Tue, Jun 26, 2012 at 12:55 PM, Enlightenment SVN
<[email protected]> wrote:
> Log:
> ecore/gesture: Don't do dead assignments after return.
>
>  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.
>
> Author:       stefan
> Date:         2012-06-26 03:55:09 -0700 (Tue, 26 Jun 2012)
> New Revision: 72872
> Trac:         http://trac.enlightenment.org/e/changeset/72872
>
> Modified:
>  trunk/ecore/src/lib/ecore_x/xlib/ecore_x_gesture.c
>
> Modified: trunk/ecore/src/lib/ecore_x/xlib/ecore_x_gesture.c
> ===================================================================
> --- trunk/ecore/src/lib/ecore_x/xlib/ecore_x_gesture.c  2012-06-26 10:55:02 
> UTC (rev 72871)
> +++ trunk/ecore/src/lib/ecore_x/xlib/ecore_x_gesture.c  2012-06-26 10:55:09 
> UTC (rev 72872)
> @@ -56,9 +56,9 @@
>
>    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 @@
>
>    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 @@
>
>    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 @@
>
>    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 */
>  }
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> enlightenment-svn mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to