forked from osmocom/wireshark
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:
parent
12e3f06543
commit
be297f5f30
|
@ -160,7 +160,7 @@ draw_sack_graph(struct sctp_udata *u_data)
|
||||||
struct gaps *gap;
|
struct gaps *gap;
|
||||||
guint32 /*max_num,*/ diff;
|
guint32 /*max_num,*/ diff;
|
||||||
guint32 *dup_list;
|
guint32 *dup_list;
|
||||||
cairo_t * cr;
|
cairo_t * cr = NULL;
|
||||||
|
|
||||||
if (u_data->dir==2)
|
if (u_data->dir==2)
|
||||||
{
|
{
|
||||||
|
@ -338,7 +338,7 @@ draw_nr_sack_graph(struct sctp_udata *u_data)
|
||||||
guint32 /*max_num,*/ diff;
|
guint32 /*max_num,*/ diff;
|
||||||
/* This holds the sum of gap acks and nr gap acks */
|
/* This holds the sum of gap acks and nr gap acks */
|
||||||
guint16 total_gaps = 0;
|
guint16 total_gaps = 0;
|
||||||
cairo_t *cr;
|
cairo_t *cr = NULL;
|
||||||
|
|
||||||
if (u_data->dir==2)
|
if (u_data->dir==2)
|
||||||
{
|
{
|
||||||
|
@ -508,7 +508,7 @@ draw_tsn_graph(struct sctp_udata *u_data)
|
||||||
guint32 tsnumber=0;
|
guint32 tsnumber=0;
|
||||||
guint32 min_secs=0, diff;
|
guint32 min_secs=0, diff;
|
||||||
gint xvalue, yvalue;
|
gint xvalue, yvalue;
|
||||||
cairo_t *cr;
|
cairo_t *cr = NULL;
|
||||||
|
|
||||||
if (u_data->dir==1)
|
if (u_data->dir==1)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue