forked from osmocom/wireshark
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>
This commit is contained in:
parent
0297e374b8
commit
2e76b58840
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue