aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2023-09-11 14:11:52 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2023-11-29 16:36:02 +0000
commitd9a05ea7af9fdd122fcf3c663e12740f61db7534 (patch)
tree93d3a0912db8627608c74064595f1cf2faa2bfbf
parent0b9242dea68c44dc630921d3802f3f80f4d84b48 (diff)
downloadsrc-d9a05ea7af9fdd122fcf3c663e12740f61db7534.tar.gz
src-d9a05ea7af9fdd122fcf3c663e12740f61db7534.zip
tools/wlanstats: fix -Wunused-but-set-variable
The "allnodes" code is currently #if 0 so also #if 0 the setting of the command line option and variable in order to keep wlanstats compiling. Sponsored by: The FreeBSD Foundation (cherry picked from commit 530c13c5401c1f29f8325cf851d96778852a1ba3)
-rw-r--r--tools/tools/net80211/wlanstats/main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/tools/net80211/wlanstats/main.c b/tools/tools/net80211/wlanstats/main.c
index 4c0cf4db0505..ac100a70622e 100644
--- a/tools/tools/net80211/wlanstats/main.c
+++ b/tools/tools/net80211/wlanstats/main.c
@@ -168,18 +168,26 @@ main(int argc, char *argv[])
struct ether_addr *ea;
const uint8_t *mac = NULL;
const char *ifname;
+#if 0
int allnodes = 0;
+#endif
int c, mode;
ifname = getenv("WLAN");
if (ifname == NULL)
ifname = "wlan0";
wf = wlanstats_new(ifname, getfmt("default"));
+#if 0
while ((c = getopt(argc, argv, "ahi:lm:o:")) != -1) {
+#else
+ while ((c = getopt(argc, argv, "hi:lm:o:")) != -1) {
+#endif
switch (c) {
+#if 0
case 'a':
allnodes++;
break;
+#endif
case 'h':
usage();
exit(0);