Try to fix:

cc1: warnings being treated as errors
../../gtk/sctp_graph_dlg.c: In function ‘draw_tsn_graph’:
../../gtk/sctp_graph_dlg.c:511: error: ‘cr’ may be used uninitialized in this function
../../gtk/sctp_graph_dlg.c: In function ‘draw_sack_graph’:
../../gtk/sctp_graph_dlg.c:163: error: ‘cr’ may be used uninitialized in this function
../../gtk/sctp_graph_dlg.c: In function ‘draw_nr_sack_graph’:
../../gtk/sctp_graph_dlg.c:341: error: ‘cr’ may be used uninitialized in this function

svn path=/trunk/; revision=38296
This commit is contained in:
Anders Broman 2011-07-31 21:54:46 +00:00
parent 12e3f06543
commit be297f5f30
1 changed files with 3 additions and 3 deletions

View File

@ -160,7 +160,7 @@ draw_sack_graph(struct sctp_udata *u_data)
struct gaps *gap;
guint32 /*max_num,*/ diff;
guint32 *dup_list;
cairo_t * cr;
cairo_t * cr = NULL;
if (u_data->dir==2)
{
@ -338,7 +338,7 @@ draw_nr_sack_graph(struct sctp_udata *u_data)
guint32 /*max_num,*/ diff;
/* This holds the sum of gap acks and nr gap acks */
guint16 total_gaps = 0;
cairo_t *cr;
cairo_t *cr = NULL;
if (u_data->dir==2)
{
@ -508,7 +508,7 @@ draw_tsn_graph(struct sctp_udata *u_data)
guint32 tsnumber=0;
guint32 min_secs=0, diff;
gint xvalue, yvalue;
cairo_t *cr;
cairo_t *cr = NULL;
if (u_data->dir==1)
{