summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-02-11 10:39:42 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-02-11 10:39:42 +0900
commitf1693ee3e2d7581add06b8ad13a21d9806717a7a (patch)
tree97ae00c794de7e276ad4e9f8c6592eab88f5434f /src
parent73a5b84b8fac33fbe1d3c2ec19803a488731d1ac (diff)
elm code - silence possibly uninitialied compiler warnings
every time i build efl i see all these warnigns spew by about elm_code and possibly uninited vars being used. yes - they're filled in via ptr ref bya func but gcc definitely seems to think they MIGHT not be filled in in some cases... and either way tyhe cost of setting to 0 is minimal and less noise is better so we see real warnings more easily... :)
Diffstat (limited to 'src')
-rw-r--r--src/lib/elementary/elm_code_widget.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/elementary/elm_code_widget.c b/src/lib/elementary/elm_code_widget.c
index 4519aaca12..19eb969dc0 100644
--- a/src/lib/elementary/elm_code_widget.c
+++ b/src/lib/elementary/elm_code_widget.c
@@ -551,7 +551,7 @@ _elm_code_widget_update_focus_directions(Elm_Code_Widget *obj)
551static void 551static void
552_elm_code_widget_cursor_ensure_visible(Elm_Code_Widget *widget) 552_elm_code_widget_cursor_ensure_visible(Elm_Code_Widget *widget)
553{ 553{
554 Evas_Coord viewx, viewy, vieww, viewh, cellw, cellh; 554 Evas_Coord viewx, viewy, vieww, viewh, cellw = 0, cellh = 0;
555 Evas_Coord curx, cury, oy, rowy; 555 Evas_Coord curx, cury, oy, rowy;
556 Evas_Object *grid; 556 Evas_Object *grid;
557 Elm_Code_Widget_Data *pd; 557 Elm_Code_Widget_Data *pd;
@@ -618,9 +618,9 @@ _elm_code_widget_position_at_coordinates_get(Eo *obj, Elm_Code_Widget_Data *pd,
618 Elm_Code_Widget *widget; 618 Elm_Code_Widget *widget;
619 Eina_List *item; 619 Eina_List *item;
620 Elm_Code_Line *line; 620 Elm_Code_Line *line;
621 Evas_Coord ox, oy, sx, sy, rowy; 621 Evas_Coord ox = 0, oy = 0, sx = 0, sy = 0, rowy = 0;
622 Evas_Object *grid; 622 Evas_Object *grid;
623 int cw, ch, gutter; 623 int cw = 0, ch = 0, gutter;
624 unsigned int guess, number; 624 unsigned int guess, number;
625 625
626 widget = (Elm_Code_Widget *)obj; 626 widget = (Elm_Code_Widget *)obj;
@@ -663,8 +663,8 @@ _elm_code_widget_geometry_for_position_get(Elm_Code_Widget *widget, Elm_Code_Wid
663{ 663{
664 Elm_Code_Line *line; 664 Elm_Code_Line *line;
665 Evas_Object *grid; 665 Evas_Object *grid;
666 Evas_Coord cellw; 666 Evas_Coord cellw = 0;
667 unsigned int length; 667 unsigned int length = 0;
668 int gutter; 668 int gutter;
669 669
670 line = elm_code_file_line_get(pd->code->file, row); 670 line = elm_code_file_line_get(pd->code->file, row);
@@ -1868,7 +1868,7 @@ _elm_code_widget_resize(Elm_Code_Widget *widget, Elm_Code_Line *newline)
1868 Eina_List *item; 1868 Eina_List *item;
1869 Evas_Object *grid; 1869 Evas_Object *grid;
1870 Evas_Coord ww, wh, old_width, old_height; 1870 Evas_Coord ww, wh, old_width, old_height;
1871 int w, h, cw, ch, gutter; 1871 int w, h, cw = 0, ch = 0, gutter;
1872 unsigned int line_width; 1872 unsigned int line_width;
1873 Elm_Code_Widget_Data *pd; 1873 Elm_Code_Widget_Data *pd;
1874 1874
@@ -1943,7 +1943,7 @@ _elm_code_widget_line_refresh(Eo *obj, Elm_Code_Widget_Data *pd EINA_UNUSED, Elm
1943EOAPI Eina_Bool 1943EOAPI Eina_Bool
1944_elm_code_widget_line_visible_get(Eo *obj, Elm_Code_Widget_Data *pd, Elm_Code_Line *line) 1944_elm_code_widget_line_visible_get(Eo *obj, Elm_Code_Widget_Data *pd, Elm_Code_Line *line)
1945{ 1945{
1946 Evas_Coord cellh, viewy, viewh; 1946 Evas_Coord cellh = 0, viewy = 0, viewh = 0;
1947 1947
1948 elm_scroller_region_get(pd->scroller, NULL, &viewy, NULL, &viewh); 1948 elm_scroller_region_get(pd->scroller, NULL, &viewy, NULL, &viewh);
1949 _elm_code_widget_cell_size_get(obj, NULL, &cellh); 1949 _elm_code_widget_cell_size_get(obj, NULL, &cellh);
@@ -1957,7 +1957,7 @@ _elm_code_widget_line_visible_get(Eo *obj, Elm_Code_Widget_Data *pd, Elm_Code_Li
1957EOAPI unsigned int 1957EOAPI unsigned int
1958_elm_code_widget_lines_visible_get(Eo *obj, Elm_Code_Widget_Data *pd) 1958_elm_code_widget_lines_visible_get(Eo *obj, Elm_Code_Widget_Data *pd)
1959{ 1959{
1960 Evas_Coord cellh, viewh; 1960 Evas_Coord cellh = 0, viewh = 0;
1961 1961
1962 elm_scroller_region_get(pd->scroller, NULL, NULL, NULL, &viewh); 1962 elm_scroller_region_get(pd->scroller, NULL, NULL, NULL, &viewh);
1963 _elm_code_widget_cell_size_get(obj, NULL, &cellh); 1963 _elm_code_widget_cell_size_get(obj, NULL, &cellh);