hermet pushed a commit to branch master.

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

commit a2df08cb20def2ae5c5a148284be9b475bce9a2d
Author: Marcel Hollerbach <[email protected]>
Date:   Thu Jun 21 14:52:29 2018 +0900

    efl_ui_focus_manager_calc: fix warnings
    
    Summary: its a false positive...
    
    Reviewers: zmike, ManMower, devilhorns, Hermet
    
    Reviewed By: Hermet
    
    Subscribers: Hermet, cedric, #committers
    
    Tags: #efl
    
    Differential Revision: https://phab.enlightenment.org/D6342
---
 src/lib/elementary/efl_ui_focus_manager_calc.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/lib/elementary/efl_ui_focus_manager_calc.c 
b/src/lib/elementary/efl_ui_focus_manager_calc.c
index d5f502b508..e3c6af6008 100644
--- a/src/lib/elementary/efl_ui_focus_manager_calc.c
+++ b/src/lib/elementary/efl_ui_focus_manager_calc.c
@@ -334,8 +334,8 @@ dirty_flush_node(Efl_Ui_Focus_Manager *obj EINA_UNUSED, 
Efl_Ui_Focus_Manager_Cal
 
    for (int i = 0; i < 4; ++i)
      {
-        Efl_Ui_Focus_Direction direction;
-        Efl_Ui_Focus_Graph_Calc_Direction_Result *res;
+        Efl_Ui_Focus_Direction direction = -1;
+        Efl_Ui_Focus_Graph_Calc_Direction_Result *res = NULL;
 
         if (i == 0)
           {
@@ -352,12 +352,13 @@ dirty_flush_node(Efl_Ui_Focus_Manager *obj EINA_UNUSED, 
Efl_Ui_Focus_Manager_Cal
              direction = EFL_UI_FOCUS_DIRECTION_UP;
              res = &result.top;
           }
-       else if (i == 3)
+        else if (i == 3)
           {
              direction = EFL_UI_FOCUS_DIRECTION_DOWN;
              res = &result.bottom;
           }
-        border_onedirection_set(node, direction, res->relation);
+
+       border_onedirection_set(node, direction, res->relation);
      }
 
 #ifdef CALC_DEBUG

-- 


Reply via email to