cedric pushed a commit to branch master.

commit fc2124436c663545e6e39f394e30c7df9d43c178
Author: Cedric BAIL <[email protected]>
Date:   Fri Mar 22 20:13:32 2013 +0900

    edje: shutup you moronic GCC 4.7.
    
    This memset is not necessary as pack_it_copy can only be accessed when
    the part type is a BOX or a TABLE and thus pack_it will be defined. Sadly
    GCC 4.7 is more stupid than GCC 4.6 and think that it is an unitialized data
    resulting in a massive number of useless warning that could hide real 
warning.
---
 src/lib/edje/edje_load.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/lib/edje/edje_load.c b/src/lib/edje/edje_load.c
index 0aa0dda..cd0fe5f 100644
--- a/src/lib/edje/edje_load.c
+++ b/src/lib/edje/edje_load.c
@@ -855,8 +855,7 @@ _edje_object_file_set_internal(Evas_Object *obj, const char 
*file, const char *g
                          }
                        else
                          {
-                            pack_it_copy.spread.w = 0;
-                            pack_it_copy.spread.h = 0;
+                            memset(&pack_it_copy, 0, sizeof (pack_it_copy));
                          }
 
                       do

-- 

------------------------------------------------------------------------------
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_mar

Reply via email to