aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2016-04-06 15:22:20 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-04-06 16:28:28 +0900
commit7c05a957cd6872c198734a666626017f3eb8f19c (patch)
treec487bb971bc979fd7a459b4caa332b1ec5a36a35 /src
parentelm_web: Fix warning (missing initializer) (diff)
downloadefl-7c05a957cd6872c198734a666626017f3eb8f19c.tar.gz
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 *).
Diffstat (limited to 'src')
-rw-r--r--src/lib/elementary/elc_fileselector.c4
-rw-r--r--src/lib/elementary/elm_colorselector.c4
-rw-r--r--src/lib/elementary/elm_conform.c2
-rw-r--r--src/lib/elementary/elm_photocam.c2
4 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/elementary/elc_fileselector.c b/src/lib/elementary/elc_fileselector.c
index 1e086a2941..7f230654d1 100644
--- a/src/lib/elementary/elc_fileselector.c
+++ b/src/lib/elementary/elc_fileselector.c
@@ -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;
}
diff --git a/src/lib/elementary/elm_colorselector.c b/src/lib/elementary/elm_colorselector.c
index ca2ae727eb..d61e41d20c 100644
--- a/src/lib/elementary/elm_colorselector.c
+++ b/src/lib/elementary/elm_colorselector.c
@@ -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);
}
diff --git a/src/lib/elementary/elm_conform.c b/src/lib/elementary/elm_conform.c
index 7021c5cce4..529c8e976d 100644
--- a/src/lib/elementary/elm_conform.c
+++ b/src/lib/elementary/elm_conform.c
@@ -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);
diff --git a/src/lib/elementary/elm_photocam.c b/src/lib/elementary/elm_photocam.c
index 31acf63aa9..d90554c701 100644
--- a/src/lib/elementary/elm_photocam.c
+++ b/src/lib/elementary/elm_photocam.c
@@ -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))
{