From da13878cc2282c86151ad9be95c656b7eb36fe82 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 3 May 2018 16:13:30 -0400 Subject: [PATCH] efl_ui_focus_manager_calc: resolve shadow warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: lib/elementary/efl_ui_focus_manager_calc.c: In function ‘node_item_free’: lib/elementary/efl_ui_focus_manager_calc.c:208:20: warning: declaration of ‘n’ shadows a previous local [-Wshadow] Eina_List *n; ^ lib/elementary/efl_ui_focus_manager_calc.c:197:10: note: shadowed declaration is here Node *n; ^ Reviewers: bu5hm4n Reviewed By: bu5hm4n Subscribers: cedric, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D6020 --- src/lib/elementary/efl_ui_focus_manager_calc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/elementary/efl_ui_focus_manager_calc.c b/src/lib/elementary/efl_ui_focus_manager_calc.c index c60769468b..2360c266e4 100644 --- a/src/lib/elementary/efl_ui_focus_manager_calc.c +++ b/src/lib/elementary/efl_ui_focus_manager_calc.c @@ -205,10 +205,9 @@ node_item_free(Node *item) for(int i = EFL_UI_FOCUS_DIRECTION_UP; i < EFL_UI_FOCUS_DIRECTION_LAST; i++) { Node *partner; - Eina_List *n; #define MAKE_LIST_DIRTY(node, field) \ - EINA_LIST_FOREACH(DIRECTION_ACCESS(node, i).field, n, partner) \ + EINA_LIST_FOREACH(DIRECTION_ACCESS(node, i).field, l, partner) \ { \ dirty_add(obj, pd, partner); \ }