From nobody Mon Sep 11 14:28:52 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RkpxJ4mqWz4tS5k; Mon, 11 Sep 2023 14:28:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RkpxJ3Zdfz3GTK; Mon, 11 Sep 2023 14:28:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694442532; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=l+tTL9Ic6AYfYie1wooH29/JHFIh6O3Ab3B7Oj8CUCM=; b=ERfOj5zgxB/W6IJZ8B5dFibsLInWjAgezVkfbvZNSossu8FarjQOpqymGe2/o4JIoDo0Lh oNpJClyIH7vxTJe4Mbl/hdDlZ/iAplw6iQSlw7zf+fGNN3xrAF6qDyml+fwt1z/46on7cl jXYEo9JveArgpIZSHc+DNtcWVCAoK49JP1Uj2vOfRAzYvpYNvru7dJ+Ev0KZ/WRAqV6U6j +KTuRR+4uyClHPOOkl/d2aNI44MHpTj2LImG0g5BVM4rH2C9NViQdCd7MJPdkhXLObJ0CY 2kDXOcy06GZ4OWjuH7XdosdROibpt1rJAXZowFTvnLt1G9O5C6sXEbLiDN9mRw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694442532; a=rsa-sha256; cv=none; b=amVDbghJylqF71IR/oVPwl3JftyxNli+qFIV+TG0nlPbd7SgLhbK/vp3QRArKe4EXevtkd ImiEfmDDvP7ys7AQqWjjP5loA1xl9wlxG8Szrnq4niwAE9zWQDfp5MisoSDTt1zGkySVVp jP3qPczLIuq+ZFIaUntbMAW78sQl9jVPYsP2CoaGgJSd9gbkngjfAvU04Rco7aJgNVjGhK 903wpLhU/EecoHVZURqlgSzB7ZHLwpC6TWwf333kaExJRu/JW1bjVcQ5J5UDc6UFiA7sqy wLztVuosrYWB60tqN0glWO/g4S5QIQPFd/P8H+pW/LcuGUG9WUdTQnaFuVOw/g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694442532; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=l+tTL9Ic6AYfYie1wooH29/JHFIh6O3Ab3B7Oj8CUCM=; b=kDKZAGgTUgD/7g15Vbaawmy3krXd5JbwbvGt9/Vj/QRrZPZvjnb6ZUv7BX1B10wm3/EHji DiO+mnwPHuDjJ2hROy3BuEONUb2z2mSzj7Y2xlCZJ6rQS/+J1+srPAHOOAAd52FT9a1+Eu RtnOq/IiFCOlXrNniVJ+isE+UgrnWIoT0X7oKHvc0rDY4pdGMaz7rWEggh2aB3pb2f+Bnc h7vE6VWde1G0pu76k8KeWCj2m/CtEAhTxsbgElALuF1e5xvaWDAZiIHOCCTay1gNO6Cd+L Aup5xOjGjzpOPo+Dno7Y/Dmwg6suZ+E2lMV6wly/VTd6q2a9nLFGf8x0bxtACQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RkpxJ2bPBzsnv; Mon, 11 Sep 2023 14:28:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 38BESqw2041002; Mon, 11 Sep 2023 14:28:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 38BESqmI040999; Mon, 11 Sep 2023 14:28:52 GMT (envelope-from git) Date: Mon, 11 Sep 2023 14:28:52 GMT Message-Id: <202309111428.38BESqmI040999@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: 530c13c5401c - main - tools/wlanstats: fix -Wunused-but-set-variable List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 530c13c5401c1f29f8325cf851d96778852a1ba3 Auto-Submitted: auto-generated The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=530c13c5401c1f29f8325cf851d96778852a1ba3 commit 530c13c5401c1f29f8325cf851d96778852a1ba3 Author: Bjoern A. Zeeb AuthorDate: 2023-09-11 14:11:52 +0000 Commit: Bjoern A. Zeeb CommitDate: 2023-09-11 14:28:07 +0000 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 MFC after: 10 days --- tools/tools/net80211/wlanstats/main.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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);