raster pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=1859d8b64b200d26f8c91f1b2e6352a574a33616

commit 1859d8b64b200d26f8c91f1b2e6352a574a33616
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Tue Mar 1 13:37:39 2016 +0900

    elm map: silence uninit var warnings that new gcc versions show
    
    gcc thinks the vars may in theory be uniitiialized. it's right but it
    won't actually happen. but having noise in warning output is bad, so
    fix the warnings so we can focus on the real bugs/issues/warnings
---
 src/lib/elm_map.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/lib/elm_map.c b/src/lib/elm_map.c
index 395e446..3b10cc5 100644
--- a/src/lib/elm_map.c
+++ b/src/lib/elm_map.c
@@ -518,7 +518,7 @@ _coord_to_canvas_no_rotation(Elm_Map_Data *sd,
                              Evas_Coord *xx,
                              Evas_Coord *yy)
 {
-   Evas_Coord vx, vy, sx, sy;
+   Evas_Coord vx = 0, vy = 0, sx = 0, sy = 0;
 
    _viewport_coord_get(sd, &vx, &vy, NULL, NULL);
    evas_object_geometry_get(sd->pan_obj, &sx, &sy, NULL, NULL);
@@ -548,7 +548,7 @@ _canvas_to_coord(Elm_Map_Data *sd,
                  Evas_Coord *xx,
                  Evas_Coord *yy)
 {
-   Evas_Coord vx, vy, sx, sy;
+   Evas_Coord vx = 0, vy = 0, sx = 0, sy = 0;
 
    _viewport_coord_get(sd, &vx, &vy, NULL, NULL);
    evas_object_geometry_get(sd->pan_obj, &sx, &sy, NULL, NULL);
@@ -576,8 +576,8 @@ _grid_item_coord_get(Grid_Item *gi,
 static Eina_Bool
 _grid_item_in_viewport(Grid_Item *gi)
 {
-   Evas_Coord vx, vy, vw, vh;
-   Evas_Coord x, y, w, h;
+   Evas_Coord vx = 0, vy = 0, vw = 0, vh = 0;
+   Evas_Coord x = 0, y = 0, w = 0, h = 0;
 
    EINA_SAFETY_ON_NULL_RETURN_VAL(gi, EINA_FALSE);
 
@@ -4342,7 +4342,7 @@ EOLIAN static void
 _elm_map_region_get(Eo *obj EINA_UNUSED, Elm_Map_Data *sd, double *lon, double 
*lat)
 {
    double tlon, tlat;
-   Evas_Coord vx, vy, vw, vh;
+   Evas_Coord vx = 0, vy = 0, vw = 0, vh = 0;
 
    _viewport_coord_get(sd, &vx, &vy, &vw, &vh);
    _coord_to_region_convert

-- 


Reply via email to