From 2e76b588407107c7d530cfb74a684bca38281885 Mon Sep 17 00:00:00 2001 From: Joerg Mayer Date: Sun, 19 Mar 2017 12:40:04 +0100 Subject: =?UTF-8?q?Fix=20warning=20turning=20error:=20/home/jmayer/work/wi?= =?UTF-8?q?reshark/git/ui/qt/manage=5Finterfaces=5Fdialog.cpp:273:33:=20er?= =?UTF-8?q?ror:=20variable=20=E2=80=98link=5Ftype=5Fname=E2=80=99=20set=20?= =?UTF-8?q?but=20not=20used=20[-Werror=3Dunused-but-set-variable]=20By=20c?= =?UTF-8?q?ommenting=20out=20all=20lines=20using=20this=20variable=20for?= =?UTF-8?q?=20now.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I8f074b24f86ee2063fc545cabd99d446b31a06ec Reviewed-on: https://code.wireshark.org/review/20616 Reviewed-by: Jörg Mayer --- ui/qt/manage_interfaces_dialog.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'ui/qt/manage_interfaces_dialog.cpp') 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; -- cgit v1.2.3