Edje: Fix warning with clang
authorJean-Philippe Andre <jp.andre@samsung.com>
Tue, 8 Mar 2016 05:15:45 +0000 (14:15 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Tue, 15 Mar 2016 02:11:59 +0000 (11:11 +0900)
Annoying incomplete initializer warning. Apparently gcc/clang
don't consider {0} as good enough for "initialize everything to 0"
even though they do it.

src/lib/edje/edje_program.c

index e8c298b..21bf96c 100644 (file)
@@ -10,7 +10,7 @@ static double _edje_transition_duration_scale = 0;
 static Eina_Bool
 _edje_animator_cb(void *data)
 {
-   const Eo_Event event = {0};
+   const Eo_Event event = { NULL, NULL, NULL };
    _edje_timer_cb(data, &event);
    return EINA_TRUE;
 }