I don't know if the warn_unused_result flag for this function is 
superfluid, but if such a flag is present you should check the result 
for error and not silently store the value somewhere.

Regards Peter

Enlightenment SVN schrieb:
> Log:
>   Fix compiler warnings about attribute warn_unused_result
> Author:       mcalamelli
> Date:         2009-04-21 02:51:54 -0700 (Tue, 21 Apr 2009)
> New Revision: 40264
>
> Modified:
>   trunk/e/src/bin/e_dialog.c 
>
> Modified: trunk/e/src/bin/e_dialog.c
> ===================================================================
> --- trunk/e/src/bin/e_dialog.c        2009-04-21 08:09:39 UTC (rev 40263)
> +++ trunk/e/src/bin/e_dialog.c        2009-04-21 09:51:54 UTC (rev 40264)
> @@ -22,6 +22,7 @@
>     E_Manager *man;
>     Evas_Object *o;
>     Evas_Modifier_Mask mask;
> +   Eina_Bool kg;
>     
>     if (!con)
>       {
> @@ -59,15 +60,15 @@
>     o = evas_object_rectangle_add(e_win_evas_get(dia->win));
>     dia->event_object = o;
>     mask = 0;
> -   evas_object_key_grab(o, "Tab", mask, ~mask, 0);
> +   kg = evas_object_key_grab(o, "Tab", mask, ~mask, 0);
>     mask = evas_key_modifier_mask_get(e_win_evas_get(dia->win), "Shift");
> -   evas_object_key_grab(o, "Tab", mask, ~mask, 0);
> +   kg = evas_object_key_grab(o, "Tab", mask, ~mask, 0);
>     mask = 0;
> -   evas_object_key_grab(o, "Return", mask, ~mask, 0);
> +   kg = evas_object_key_grab(o, "Return", mask, ~mask, 0);
>     mask = 0;
> -   evas_object_key_grab(o, "KP_Enter", mask, ~mask, 0);
> +   kg = evas_object_key_grab(o, "KP_Enter", mask, ~mask, 0);
>     mask = 0;
> -   evas_object_key_grab(o, "space", mask, ~mask, 0);
> +   kg = evas_object_key_grab(o, "space", mask, ~mask, 0);
>   
>     evas_object_event_callback_add(o, EVAS_CALLBACK_KEY_DOWN, 
> _e_dialog_cb_key_down, dia);
>  
>
>
> ------------------------------------------------------------------------------
> Stay on top of everything new and different, both inside and 
> around Java (TM) technology - register by April 22, and save
> $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
> 300 plus technical and hands-on sessions. Register today. 
> Use priority code J9JMT32. http://p.sf.net/sfu/p
> _______________________________________________
> enlightenment-svn mailing list
> enlightenment-...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
>   


------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to