* Vincent Torri <[email protected]> [2012-11-09 21:34:51 +0100]:

> hey
> 
> from gcc 4.8:
> 
> lib/evas/canvas/evas_object_box.c: In function '_box_layout_flow_horizontal':
> lib/evas/canvas/evas_object_box.c:1427:31: warning: argument to
> 'sizeof' in 'memset' call is the same expression as the destination;
> did you mean to dereference it? [-Wsizeof-pointer-memaccess]
>     memset(row_width, 0, sizeof(row_width));
>                                ^
> lib/evas/canvas/evas_object_box.c: In function '_box_layout_flow_vertical':
> lib/evas/canvas/evas_object_box.c:1615:32: warning: argument to
> 'sizeof' in 'memset' call is the same expression as the destination;
> did you mean to dereference it? [-Wsizeof-pointer-memaccess]
>     memset(col_height, 0, sizeof(col_height));
>                                 ^
> 
> bad code ?

Indeed. sizeof(int) * n_children it would be? I guess it doesn't crash
because it seems it's written to before read.

> 
> Vincent
> 
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_nov
> _______________________________________________
> enlightenment-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

-- 
Gustavo Lima Chaves
Computer Engineer @ ProFUSION Embedded Systems

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to