Removed gcc-4.7 warnings.

Compilation with gcc 4.7 gave me some warnings about initialization.
This commit is contained in:
Erick Pérez Castellanos
2012-12-01 15:28:52 -05:00
committed by Rene A. Viant Moran
parent ba68b831cc
commit 6c9ff2d12d
+7 -5
View File
@@ -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)
{