aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2013-11-21 18:48:36 +0000
committerGuy Harris <guy@alum.mit.edu>2013-11-21 18:48:36 +0000
commita1f2a76427134ffe71b15584b688ef947b191433 (patch)
tree55d2e9182837e4849adc7e690464011ecd786ec5 /ui
parent7727623d8cb5d5637a8af795f385e5e5b6e7d2ec (diff)
#if 0 out some currently-unused variables and the code that sets them,
to squelch compiler warnings. svn path=/trunk/; revision=53485
Diffstat (limited to 'ui')
-rw-r--r--ui/qt/main_window_slots.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/ui/qt/main_window_slots.cpp b/ui/qt/main_window_slots.cpp
index 14a84719ae..d03511a15c 100644
--- a/ui/qt/main_window_slots.cpp
+++ b/ui/qt/main_window_slots.cpp
@@ -728,7 +728,11 @@ void MainWindow::setMenusForSelectedPacket()
wmem_list_frame_t* protos;
int proto_id;
const char* proto_name;
+#if 0
gboolean is_ip = FALSE, is_tcp = FALSE, is_udp = FALSE, is_sctp = FALSE;
+#else
+ gboolean is_tcp = FALSE;
+#endif
// /* Making the menu context-sensitive allows for easier selection of the
// desired item and has the added benefit, with large captures, of
@@ -780,6 +784,7 @@ void MainWindow::setMenusForSelectedPacket()
proto_id = GPOINTER_TO_INT(wmem_list_frame_data(protos));
proto_name = proto_get_protocol_filter_name(proto_id);
+#if 0
if ((!strcmp(proto_name, "ip")) ||
(!strcmp(proto_name, "ipv6"))) {
is_ip = TRUE;
@@ -790,6 +795,11 @@ void MainWindow::setMenusForSelectedPacket()
} else if (!strcmp(proto_name, "sctp")) {
is_sctp = TRUE;
}
+#else
+ if (!strcmp(proto_name, "tcp")) {
+ is_tcp = TRUE;
+ }
+#endif
protos = wmem_list_frame_next(protos);
}