forked from enlightenment/efl
elm: Fix some warnings with clang
warning: missing field 'desc' initializer [-Wmissing-field-initializers] Solution: use gcc extension to init structs with {}. This is a bit ugly, but having too many warnings leads to ignoring them and not noticing valid ones. The warning is triggered because the first member of Eo_Event is not a primitive type (it's a struct _Eo_Opaque *).
This commit is contained in:
parent
be41b5afb0
commit
7c05a957cd
|
@ -134,7 +134,7 @@ _elm_fileselector_elm_widget_theme_apply(Eo *obj, Elm_Fileselector_Data *sd)
|
|||
static Eina_Bool
|
||||
_key_action_select(Evas_Object *obj, const char *params EINA_UNUSED)
|
||||
{
|
||||
Eo_Event event = {0};
|
||||
Eo_Event event = {};
|
||||
_ok(obj, &event);
|
||||
return EINA_TRUE;
|
||||
}
|
||||
|
@ -142,7 +142,7 @@ _key_action_select(Evas_Object *obj, const char *params EINA_UNUSED)
|
|||
static Eina_Bool
|
||||
_key_action_escape(Evas_Object *obj, const char *params EINA_UNUSED)
|
||||
{
|
||||
Eo_Event event = {0};
|
||||
Eo_Event event = {};
|
||||
_canc(obj, &event);
|
||||
return EINA_TRUE;
|
||||
}
|
||||
|
|
|
@ -2006,7 +2006,7 @@ _key_action_move(Evas_Object *obj, const char *params)
|
|||
}
|
||||
else if (sd->focused == ELM_COLORSELECTOR_COMPONENTS)
|
||||
{
|
||||
Eo_Event event = {0};
|
||||
Eo_Event event = {};
|
||||
event.obj = sd->cb_data[sd->sel_color_type]->lbt;
|
||||
_button_clicked_cb(sd->cb_data[sd->sel_color_type], &event);
|
||||
}
|
||||
|
@ -2020,7 +2020,7 @@ _key_action_move(Evas_Object *obj, const char *params)
|
|||
}
|
||||
else if (sd->focused == ELM_COLORSELECTOR_COMPONENTS)
|
||||
{
|
||||
Eo_Event event = {0};
|
||||
Eo_Event event = {};
|
||||
event.obj = sd->cb_data[sd->sel_color_type]->rbt;
|
||||
_button_clicked_cb(sd->cb_data[sd->sel_color_type], &event);
|
||||
}
|
||||
|
|
|
@ -994,7 +994,7 @@ _elm_conformant_eo_base_constructor(Eo *obj, Elm_Conformant_Data *sd)
|
|||
evas_obj_smart_callbacks_descriptions_set(obj, _smart_callbacks);
|
||||
elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_FILLER);
|
||||
|
||||
Eo_Event event = {0};
|
||||
Eo_Event event = {};
|
||||
event.obj = sd->win;
|
||||
sd->win = elm_widget_top_get(obj);
|
||||
_on_indicator_mode_changed(obj, &event);
|
||||
|
|
|
@ -1952,7 +1952,7 @@ done:
|
|||
if (an)
|
||||
{
|
||||
// FIXME: If one day we do support partial animator in photocam, this would require change
|
||||
Eo_Event event = {0};
|
||||
Eo_Event event = {};
|
||||
event.obj = evas_object_evas_get(obj);
|
||||
if (!_zoom_anim_cb(obj, &event))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue