diff options
author | Gerald Combs <gerald@wireshark.org> | 2016-02-26 10:53:26 -0800 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2016-02-26 18:54:39 +0000 |
commit | 4a38f429b650b28b13da176af2174bae73bd1638 (patch) | |
tree | ba33844d8001ef381c0aadcdb8fb8fc0cc0774f3 /ui/qt | |
parent | 0b3544083e89abd38443cff4691d9fc616ccf995 (diff) | |
download | wireshark-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/qt')
-rw-r--r-- | ui/qt/interface_tree.cpp | 5 |
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 } |