forked from enlightenment/efl
animation: Fix some warnings including a real one
Real issue here: .../efl_animation_group.c:120:40: warning: for loop has empty body [-Wempty-body] EINA_LIST_FREE(pd->animations, anim);
This commit is contained in:
parent
588995da31
commit
f1dd333e81
|
@ -23,7 +23,7 @@ _efl_animation_group_animation_add(Eo *eo_obj,
|
||||||
EOLIAN static void
|
EOLIAN static void
|
||||||
_efl_animation_group_animation_del(Eo *eo_obj EINA_UNUSED,
|
_efl_animation_group_animation_del(Eo *eo_obj EINA_UNUSED,
|
||||||
Efl_Animation_Group_Data *pd,
|
Efl_Animation_Group_Data *pd,
|
||||||
Efl_Animation*animation)
|
Efl_Animation *animation)
|
||||||
{
|
{
|
||||||
Eina_List *list;
|
Eina_List *list;
|
||||||
if (!animation) return;
|
if (!animation) return;
|
||||||
|
@ -36,7 +36,8 @@ _efl_animation_group_animation_del(Eo *eo_obj EINA_UNUSED,
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ERR("Animation(%p) is not in the group animation.");
|
ERR("Animation(%s@%p) is not in the group animation.",
|
||||||
|
efl_class_name_get(animation), animation);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -117,7 +118,7 @@ _efl_animation_group_efl_object_destructor(Eo *eo_obj,
|
||||||
{
|
{
|
||||||
Efl_Animation *anim;
|
Efl_Animation *anim;
|
||||||
|
|
||||||
EINA_LIST_FREE(pd->animations, anim);
|
EINA_LIST_FREE(pd->animations, anim)
|
||||||
efl_unref(anim);
|
efl_unref(anim);
|
||||||
|
|
||||||
efl_destructor(efl_super(eo_obj, MY_CLASS));
|
efl_destructor(efl_super(eo_obj, MY_CLASS));
|
||||||
|
|
Loading…
Reference in New Issue