atspi: suppress warning message 83/141983/3 accepted/tizen/4.0/unified/20170816.011516 accepted/tizen/4.0/unified/20170816.014745 accepted/tizen/unified/20170804.025559 submit/tizen/20170803.051344 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170814.115522 submit/tizen_4.0_unified/20170814.115522
authorShinwoo Kim <cinoo.kim@samsung.com>
Wed, 2 Aug 2017 06:51:25 +0000 (15:51 +0900)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Wed, 2 Aug 2017 11:09:24 +0000 (11:09 +0000)
The following is warning message.

In function '_elm_genlist_elm_widget_screen_reader':
warning: declaration of 'l' shadows a previous local [-Wshadow]
              Eina_List *l;
                         ^
note: shadowed declaration is here
    Eina_List *l;

Change-Id: I8af5c5e4a49219bebccd2a51ddc0ddfc853f447f

src/lib/elm_genlist.c
src/mobile_lib/elm_genlist.c

index ebf2929..75c8ced 100644 (file)
@@ -5937,14 +5937,13 @@ _elm_genlist_elm_widget_screen_reader(Eo *obj EINA_UNUSED, Elm_Genlist_Data *sd,
    Item_Block *itb;
    Eina_Bool done = EINA_FALSE;
    Evas_Object *content = NULL;
+   Eina_List *l, *ll;
+   Elm_Gen_Item *it;
 
    EINA_INLIST_FOREACH(sd->blocks, itb)
      {
         if (itb->realized)
           {
-             Eina_List *l;
-             Elm_Gen_Item *it;
-
              done = EINA_TRUE;
              EINA_LIST_FOREACH(itb->items, l, it)
                {
@@ -5953,7 +5952,7 @@ _elm_genlist_elm_widget_screen_reader(Eo *obj EINA_UNUSED, Elm_Genlist_Data *sd,
                     {
                        elm_interface_atspi_accessible_added(EO_OBJ(it));
                        elm_interface_atspi_accessible_children_changed_added_signal_emit(sd->obj, EO_OBJ(it));
-                       EINA_LIST_FOREACH(it->contents, l, content)
+                       EINA_LIST_FOREACH(it->contents, ll, content)
                          {
                             if (eo_isa(content, ELM_INTERFACE_ATSPI_ACCESSIBLE_MIXIN))
                               {
index 563c55f..d1465b3 100644 (file)
@@ -6195,14 +6195,13 @@ _elm_genlist_elm_widget_screen_reader(Eo *obj EINA_UNUSED, Elm_Genlist_Data *sd,
    Item_Block *itb;
    Eina_Bool done = EINA_FALSE;
    Evas_Object *content = NULL;
-   Eina_List *l;
+   Eina_List *l, *ll;
+   Elm_Gen_Item *it;
 
    EINA_INLIST_FOREACH(sd->blocks, itb)
      {
         if (itb->realized)
           {
-             Elm_Gen_Item *it;
-
              done = EINA_TRUE;
              EINA_LIST_FOREACH(itb->items, l, it)
                {
@@ -6211,7 +6210,7 @@ _elm_genlist_elm_widget_screen_reader(Eo *obj EINA_UNUSED, Elm_Genlist_Data *sd,
                     {
                        elm_interface_atspi_accessible_added(EO_OBJ(it));
                        elm_interface_atspi_accessible_children_changed_added_signal_emit(sd->obj, EO_OBJ(it));
-                       EINA_LIST_FOREACH(it->content_objs, l, content)
+                       EINA_LIST_FOREACH(it->content_objs, ll, content)
                          {
                             if (eo_isa(content, ELM_INTERFACE_ATSPI_ACCESSIBLE_MIXIN))
                               {