[gnome-shell] initialize a variable that gcc warns about



commit 4aa2473d1886e587458526a4a022d42c25c159e7
Author: Dan Winship <danw gnome org>
Date:   Fri Mar 26 09:26:17 2010 -0400

    initialize a variable that gcc warns about
    
    https://bugzilla.gnome.org/show_bug.cgi?id=613749

 src/st/st-box-layout.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/st/st-box-layout.c b/src/st/st-box-layout.c
index 16e9209..b496110 100644
--- a/src/st/st-box-layout.c
+++ b/src/st/st-box-layout.c
@@ -562,7 +562,8 @@ compute_shrinks (StBoxLayout *self,
   StBoxLayoutPrivate *priv = self->priv;
   int n_children = g_list_length (priv->children);
   BoxChildShrink *shrinks = g_new0 (BoxChildShrink, n_children);
-  gfloat shrink_so_far, base_shrink;
+  gfloat shrink_so_far;
+  gfloat base_shrink = 0; /* the "= 0" is just to make gcc happy */
   int n_shrink_children;
   GList *l;
   int i;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]