[gnome-calendar] Removed gcc-4.7 warnings.



commit 6c9ff2d12de8c1f13d0584575339e47071168c56
Author: Erick PÃrez Castellanos <erick red gmail com>
Date:   Sun Nov 18 17:37:31 2012 -0500

    Removed gcc-4.7 warnings.
    
    Compilation with gcc 4.7 gave me some warnings about initialization.

 src/gcal-arrow-bin.c |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/src/gcal-arrow-bin.c b/src/gcal-arrow-bin.c
index abacf4a..9459453 100644
--- a/src/gcal-arrow-bin.c
+++ b/src/gcal-arrow-bin.c
@@ -507,6 +507,7 @@ gcal_arrow_bin_draw (GtkWidget *widget,
 
   width = gtk_widget_get_allocated_width (widget) - 2 * border_width;
   height = gtk_widget_get_allocated_height (widget) - 2 * border_width;
+  selected_border = 0;
 
   x = y = border_width;
   if (priv->arrow_position == GTK_POS_LEFT)
@@ -579,11 +580,11 @@ gcal_arrow_bin_draw_arrow (GtkWidget *widget,
   guint height;
   gdouble arrow_start_point;
 
-  GPoint p0;
-  GPoint p1;
-  GPoint p2;
-  GPoint p3;
-  GPoint p4;
+  GPoint p0 = { 0, 0 };
+  GPoint p1 = { 0, 0 };
+  GPoint p2 = { 0, 0 };
+  GPoint p3 = { 0, 0 };
+  GPoint p4 = { 0, 0 };
 
   priv = GCAL_ARROW_BIN (widget)->priv;
 
@@ -605,6 +606,7 @@ gcal_arrow_bin_draw_arrow (GtkWidget *widget,
 
   width = gtk_widget_get_allocated_width (widget) - 2 * border_width;
   height = gtk_widget_get_allocated_height (widget) - 2 * border_width;
+  selected_border = 0;
 
   switch (priv->arrow_position)
     {



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