summaryrefslogtreecommitdiff
path: root/gtk/tcp_graph.c
diff options
context:
space:
mode:
authorJörg Mayer <jmayer@loplof.de>2011-05-19 05:44:32 +0000
committerJörg Mayer <jmayer@loplof.de>2011-05-19 05:44:32 +0000
commit6b93c33026f3367739fdb1201fdbf402c0db4ce1 (patch)
treee238a8eb0a1393155cd1aa31eeaf9d4bb55613d6 /gtk/tcp_graph.c
parent2b3167dcf9d91b3b4f3ec21ceb00d17ad66f109e (diff)
downloadwireshark-6b93c33026f3367739fdb1201fdbf402c0db4ce1.tar.gz
Fix two warning in case of UIMANAGER:
- Unused variable - ‘graph_type’ may be used uninitialized Is the second part of the patch (added inside the else clause) correct? svn path=/trunk/; revision=37282
Diffstat (limited to 'gtk/tcp_graph.c')
-rw-r--r--gtk/tcp_graph.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/tcp_graph.c b/gtk/tcp_graph.c
index a55800441f..a02360338e 100644
--- a/gtk/tcp_graph.c
+++ b/gtk/tcp_graph.c
@@ -590,7 +590,7 @@ static void unset_busy_cursor(GdkWindow *w)
gdk_flush();
}
#ifdef MAIN_MENU_USE_UIMANAGER
-void tcp_graph_cb (GtkAction *action, gpointer user_data)
+void tcp_graph_cb (GtkAction *action, gpointer user_data _U_)
{
struct segment current;
struct graph *g;
@@ -608,6 +608,8 @@ void tcp_graph_cb (GtkAction *action, gpointer user_data)
graph_type = GRAPH_RTT;
}else if(strcmp(name, "/Analyze/StatisticsMenu/TCPStreamGraphMenu/Window-Scaling-Graph") == 0){
graph_type = GRAPH_WSCALE;
+ }else{
+ return;
}
debug(DBS_FENTRY) puts ("tcp_graph_cb()");