aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/manage_interfaces_dialog.cpp
diff options
context:
space:
mode:
authorJoerg Mayer <jmayer@loplof.de>2017-03-19 12:40:04 +0100
committerJörg Mayer <jmayer@loplof.de>2017-03-19 12:04:35 +0000
commit2e76b588407107c7d530cfb74a684bca38281885 (patch)
tree2c6b0c8c1d435bc2c6103c36b4163b4a69acbe67 /ui/qt/manage_interfaces_dialog.cpp
parent0297e374b88891626fe2583f12aac29b695a5336 (diff)
Fix warning turning error:
/home/jmayer/work/wireshark/git/ui/qt/manage_interfaces_dialog.cpp:273:33: error: variable ‘link_type_name’ set but not used [-Werror=unused-but-set-variable] By commenting out all lines using this variable for now. Change-Id: I8f074b24f86ee2063fc545cabd99d446b31a06ec Reviewed-on: https://code.wireshark.org/review/20616 Reviewed-by: Jörg Mayer <jmayer@loplof.de>
Diffstat (limited to 'ui/qt/manage_interfaces_dialog.cpp')
-rw-r--r--ui/qt/manage_interfaces_dialog.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/ui/qt/manage_interfaces_dialog.cpp b/ui/qt/manage_interfaces_dialog.cpp
index eb053c45d2..885058070c 100644
--- a/ui/qt/manage_interfaces_dialog.cpp
+++ b/ui/qt/manage_interfaces_dialog.cpp
@@ -270,7 +270,8 @@ void ManageInterfacesDialog::addRemoteInterfaces(GList* rlist, remote_options *r
GList *if_entry, *lt_entry;
if_info_t *if_info;
char *if_string = NULL;
- gchar *descr, *str = NULL, *link_type_name = NULL, *auth_str;
+ gchar *descr, *str = NULL, *auth_str;
+ // gchar *link_type_name = NULL;
if_capabilities_t *caps;
gint linktype_count;
bool monitor_mode, found = false;
@@ -398,7 +399,7 @@ void ManageInterfacesDialog::addRemoteInterfaces(GList* rlist, remote_options *r
linkr->dlt = -1;
}
if (linktype_count == 0) {
- link_type_name = g_strdup(str);
+ // link_type_name = g_strdup(str);
device.active_dlt = data_link_info->dlt;
}
linkr->name = g_strdup(str);
@@ -412,7 +413,7 @@ void ManageInterfacesDialog::addRemoteInterfaces(GList* rlist, remote_options *r
device.monitor_mode_supported = FALSE;
#endif
device.active_dlt = -1;
- link_type_name = g_strdup("default");
+ // link_type_name = g_strdup("default");
}
device.addresses = g_strdup(ip_str->str);
device.no_addresses = ips;