From 76e307a88a8c2fb940730d23423d5ec06fb3f74b Mon Sep 17 00:00:00 2001 From: Yevgen Muntyan <17531749+muntyan@users.noreply.github.com> Date: Fri, 24 Mar 2006 19:12:59 -0600 Subject: [PATCH] Suppress gcc warnings about unitialized variables --- .../moofileview/moofoldermodel-private.h | 2 +- moo/mooutils/moofileview/mooiconview.c | 2 +- moo/mooutils/mooscript/mooscript-node.c | 2 +- moo/mooutils/mooscript/mooscript-parser.c | 2 +- moo/mooutils/moouseractions.c | 4 ++-- mooterm.kdevelop | 18 +++++++++--------- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/moo/mooutils/moofileview/moofoldermodel-private.h b/moo/mooutils/moofileview/moofoldermodel-private.h index a5c4fc42..fdd388f6 100644 --- a/moo/mooutils/moofileview/moofoldermodel-private.h +++ b/moo/mooutils/moofileview/moofoldermodel-private.h @@ -176,7 +176,7 @@ static int file_list_add (FileList *flist, static int file_list_remove (FileList *flist, MooFile *file) { - int index_; + int index_ = 0; GList *link; link = _list_find (flist, file, &index_); diff --git a/moo/mooutils/moofileview/mooiconview.c b/moo/mooutils/moofileview/mooiconview.c index a0b2e41a..e15f7c43 100644 --- a/moo/mooutils/moofileview/mooiconview.c +++ b/moo/mooutils/moofileview/mooiconview.c @@ -1712,7 +1712,7 @@ static void invalidate_path_rectangle (MooIconView *view, GtkTreePath *path) { Column *column; - int index_; + int index_ = 0; if (!GTK_WIDGET_REALIZED (view) || view->priv->update_idle) return; diff --git a/moo/mooutils/mooscript/mooscript-node.c b/moo/mooutils/mooscript/mooscript-node.c index 692b88f8..3e3bd3e3 100644 --- a/moo/mooutils/mooscript/mooscript-node.c +++ b/moo/mooutils/mooscript/mooscript-node.c @@ -1019,7 +1019,7 @@ ms_node_get_item_eval (MSNode *node_, MSContext *ctx) { MSNodeGetItem *node = MS_NODE_GET_ITEM (node_); - MSValue *obj = NULL, *key = NULL, *val; + MSValue *obj = NULL, *key = NULL, *val = NULL; guint len; int index; diff --git a/moo/mooutils/mooscript/mooscript-parser.c b/moo/mooutils/mooscript/mooscript-parser.c index 44c20e29..a674aaf7 100644 --- a/moo/mooutils/mooscript/mooscript-parser.c +++ b/moo/mooutils/mooscript/mooscript-parser.c @@ -491,7 +491,7 @@ ms_script_check (const char *string) MSParser *parser; MSScriptCheckResult ret; GSList *stack; - gboolean semicolon; + gboolean semicolon = FALSE; g_return_val_if_fail (string != NULL, MS_SCRIPT_ERROR); diff --git a/moo/mooutils/moouseractions.c b/moo/mooutils/moouseractions.c index 2ca86c7b..58b38b07 100644 --- a/moo/mooutils/moouseractions.c +++ b/moo/mooutils/moouseractions.c @@ -339,7 +339,7 @@ splitlines (const char *string, while (len) { - guint term_len; + guint term_len = 0; const char *term = find_line_term (string, len, &term_len); n_lines++; @@ -381,7 +381,7 @@ moo_parse_user_actions (const char *filename, GError *error = NULL; Parser parser; char **lines; - guint n_lines, i; + guint n_lines = 0, i; g_return_if_fail (filename != NULL); g_return_if_fail (ctx_func != NULL); diff --git a/mooterm.kdevelop b/mooterm.kdevelop index 8a9bb7ff..a3c771ac 100644 --- a/mooterm.kdevelop +++ b/mooterm.kdevelop @@ -33,7 +33,7 @@ moo/libmoo.la - debug + optimized mterm @@ -82,7 +82,7 @@ - --enable-all-gcc-warnings=fatal --enable-developer-mode --without-mooedit --without-mooapp --without-python + --enable-all-gcc-warnings --without-mooedit --without-mooapp --without-python build/mooterm-optimized kdevgccoptions kdevgppoptions @@ -90,13 +90,13 @@ -O3 -g3 -O3 -g3 - - - - - - - + + + + + + +