hermet pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=533994772f2dcf94d41027433c75c26fdb9b09a2

commit 533994772f2dcf94d41027433c75c26fdb9b09a2
Author: Mykyta Biliavskyi <m.biliavs...@samsung.com>
Date:   Wed Jun 24 11:27:25 2015 +0000

    Fix compiler warnings.
    
    Fix -Wuninitialized flag warnings.
---
 src/bin/menu.c         | 7 +++++--
 src/bin/text_setting.c | 2 +-
 src/lib/build.c        | 4 ++--
 src/lib/template.c     | 4 ++--
 4 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/src/bin/menu.c b/src/bin/menu.c
index ce8a7b2..caff93d 100644
--- a/src/bin/menu.c
+++ b/src/bin/menu.c
@@ -245,13 +245,16 @@ about_open(menu_data *md)
    char buf[PATH_MAX];
    snprintf(buf, sizeof(buf), "%s/about/ABOUT", elm_app_data_dir_get());
 
+   Eina_Strbuf *strbuf = NULL;
+   Eina_Iterator *itr = NULL;
+
    Eina_File *file = eina_file_open(buf, EINA_FALSE);
    if (!file) goto err;
 
-   Eina_Iterator *itr = eina_file_map_lines(file);
+   itr = eina_file_map_lines(file);
    if (!itr) goto err;
 
-   Eina_Strbuf *strbuf = eina_strbuf_new();
+   strbuf = eina_strbuf_new();
    if (!strbuf) goto err;
 
    Eina_File_Line *line;
diff --git a/src/bin/text_setting.c b/src/bin/text_setting.c
index 09913d1..8866728 100644
--- a/src/bin/text_setting.c
+++ b/src/bin/text_setting.c
@@ -549,10 +549,10 @@ static char *
 syntax_template_create(double font_scale)
 {
    text_setting_data *tsd = g_tsd;
+   char *syntax_template_str = NULL;
    char *syntax_template_format = syntax_template_format_create();
    if (!syntax_template_format) goto syntax_template_create_err;
 
-   char *syntax_template_str = NULL;
    syntax_template_str = calloc(1, sizeof(char) * SYNTAX_TEMPLATE_MAX_LEN);
    if (!syntax_template_str) goto syntax_template_create_err;
 
diff --git a/src/lib/build.c b/src/lib/build.c
index 2ce1146..880cef9 100644
--- a/src/lib/build.c
+++ b/src/lib/build.c
@@ -77,7 +77,7 @@ build_cmd_set(build_data *bd)
    Eina_Strbuf *strbuf_snd = NULL;
    Eina_Strbuf *strbuf_fnt = NULL;
    Eina_Strbuf *strbuf_dat = NULL;
-
+   Eina_Strbuf *strbuf = NULL;
    //Image
    strbuf_img = strbuf_path_get(bd, ENVENTOR_RES_IMAGE, " -id ");
    if (!strbuf_img) goto err;
@@ -91,7 +91,7 @@ build_cmd_set(build_data *bd)
    strbuf_dat = strbuf_path_get(bd, ENVENTOR_RES_DATA, " -dd ");
    if (!strbuf_dat) goto err;
 
-   Eina_Strbuf *strbuf = eina_strbuf_new();
+   strbuf = eina_strbuf_new();
    if (!strbuf)
      {
         EINA_LOG_ERR("Failed to new strbuf");
diff --git a/src/lib/template.c b/src/lib/template.c
index 3999592..36f65ac 100644
--- a/src/lib/template.c
+++ b/src/lib/template.c
@@ -137,8 +137,8 @@ template_part_insert(edit_data *ed, Edje_Part_Type 
part_type,
    memset(p, ' ', space);
    p[space] = '\0';
 
-   int line_cnt;
-   char **t;
+   int line_cnt = 0;
+   char **t = NULL;
    char buf[64];
 
    switch(part_type)

-- 


Reply via email to