Suppress gcc warnings about unitialized variables

master
Yevgen Muntyan 2006-03-24 19:12:59 -06:00
parent 4e1e73fc32
commit 76e307a88a
6 changed files with 15 additions and 15 deletions

View File

@ -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_);

View File

@ -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;

View File

@ -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;

View File

@ -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);

View File

@ -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);

View File

@ -33,7 +33,7 @@
<kdevautoproject>
<general>
<activetarget>moo/libmoo.la</activetarget>
<useconfiguration>debug</useconfiguration>
<useconfiguration>optimized</useconfiguration>
</general>
<run>
<mainprogram>mterm</mainprogram>
@ -82,7 +82,7 @@
<f77flags/>
</gcc-4.0>
<optimized>
<configargs>--enable-all-gcc-warnings=fatal --enable-developer-mode --without-mooedit --without-mooapp --without-python</configargs>
<configargs>--enable-all-gcc-warnings --without-mooedit --without-mooapp --without-python</configargs>
<builddir>build/mooterm-optimized</builddir>
<ccompiler>kdevgccoptions</ccompiler>
<cxxcompiler>kdevgppoptions</cxxcompiler>
@ -90,13 +90,13 @@
<cflags>-O3 -g3</cflags>
<cxxflags>-O3 -g3</cxxflags>
<envvars/>
<topsourcedir/>
<cppflags/>
<ldflags/>
<ccompilerbinary/>
<cxxcompilerbinary/>
<f77compilerbinary/>
<f77flags/>
<topsourcedir></topsourcedir>
<cppflags></cppflags>
<ldflags></ldflags>
<ccompilerbinary></ccompilerbinary>
<cxxcompilerbinary></cxxcompilerbinary>
<f77compilerbinary></f77compilerbinary>
<f77flags></f77flags>
</optimized>
<mingw>
<envvars>