On Mon, Aug 29, 2011 at 9:07 AM, Tom Hacohen
<tom.haco...@partner.samsung.com> wrote:
> On 29/08/11 14:59, Iván Briano (Sachiel) wrote:
>> Or tell your friend to read the warnings in the compile log.
>> Or not to cast pointers to incompatible types to silence those warnings.
>
> I tell him that all the time...
> To his defence though, in this case it wasn't entirely his fault. He did
> something bad that almost everyone in efl. He used void * pointers
> without casting to the wanted type before (by using a local variable for
> example).
> He used the value of eina_list_data_get as a parameter to that function
> without noticing it wasn't an Evas_Object (I was wrong earlier when I
> said he passed an Eina_List, he actually passed an Elm_List_Item).
>
> No way for the compiler to detect that.

But I'm still amazed why Evas' own magic pointer checking did not caught it.

-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--------------------------------------
MSN: barbi...@gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to