summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2016-02-26 10:53:26 -0800
committerGerald Combs <gerald@wireshark.org>2016-02-26 18:54:39 +0000
commit4a38f429b650b28b13da176af2174bae73bd1638 (patch)
treeba33844d8001ef381c0aadcdb8fb8fc0cc0774f3 /ui
parent0b3544083e89abd38443cff4691d9fc616ccf995 (diff)
downloadwireshark-4a38f429b650b28b13da176af2174bae73bd1638.tar.gz
Mark a variable unused when we're not using it.
Change-Id: I020447859114551e71810bf17ba05dc353a1ff08 Reviewed-on: https://code.wireshark.org/review/14171 Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui')
-rw-r--r--ui/qt/interface_tree.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/qt/interface_tree.cpp b/ui/qt/interface_tree.cpp
index 67b0c12d8c..5a95dc2810 100644
--- a/ui/qt/interface_tree.cpp
+++ b/ui/qt/interface_tree.cpp
@@ -354,6 +354,10 @@ void InterfaceTree::updateStatistics(void) {
// Column name_col UserRole data MUST be set to the interface name.
void InterfaceTree::updateGlobalDeviceSelections(QTreeWidget *if_tree, int name_col)
{
+#ifndef HAVE_LIBPCAP
+ Q_UNUSED(name_col)
+#endif
+
if (!if_tree) return;
#ifdef HAVE_LIBPCAP
QTreeWidgetItemIterator iter(if_tree);
@@ -385,7 +389,6 @@ void InterfaceTree::updateGlobalDeviceSelections(QTreeWidget *if_tree, int name_
}
++iter;
}
-
#endif // HAVE_LIBPCAP
}