jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=7c05a957cd6872c198734a666626017f3eb8f19c

commit 7c05a957cd6872c198734a666626017f3eb8f19c
Author: Jean-Philippe Andre <jp.an...@samsung.com>
Date:   Wed Apr 6 15:22:20 2016 +0900

    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 *).
---
 src/lib/elementary/elc_fileselector.c  | 4 ++--
 src/lib/elementary/elm_colorselector.c | 4 ++--
 src/lib/elementary/elm_conform.c       | 2 +-
 src/lib/elementary/elm_photocam.c      | 2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/lib/elementary/elc_fileselector.c 
b/src/lib/elementary/elc_fileselector.c
index 1e086a2..7f23065 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 ca2ae72..d61e41d 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 7021c5c..529c8e9 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 31acf63..d90554c 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))
           {

-- 


Reply via email to