# HG changeset patch # User Sadrul Habib Chowdhury # Date 1184503763 0 # Node ID 2011554e1377dbbd98a45dd01cab14e2fcbb8c8e # Parent 612bc00efe20fa422b909df7a69f185ea9407842 Fix compile warnings that only shows up with -O3. This may have caused some weird drawing issues in empty trees, especially for the scrollbars. diff -r 612bc00efe20 -r 2011554e1377 finch/libgnt/gnttree.c --- a/finch/libgnt/gnttree.c Sun Jul 15 11:59:48 2007 +0000 +++ b/finch/libgnt/gnttree.c Sun Jul 15 12:49:23 2007 +0000 @@ -410,7 +410,7 @@ int start, i; GntWidget *widget = GNT_WIDGET(tree); GntTreeRow *row; - int pos, up, down; + int pos, up, down = 0; int rows, scrcol; if (!GNT_WIDGET_IS_FLAG_SET(GNT_WIDGET(tree), GNT_WIDGET_MAPPED)) @@ -547,7 +547,7 @@ rows--; if (rows > 0) { - int total; + int total = 0; int showing, position; get_next_n_opt(tree->root, g_list_length(tree->list), &total);