From fc2124436c663545e6e39f394e30c7df9d43c178 Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Fri, 22 Mar 2013 20:13:32 +0900 Subject: [PATCH] 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 0aa0dda011..cd0fe5f50c 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