git: 1fef838b913a - main - [wlanwds] Fix compiler warnings-as-errors on freebsd gcc-6.4 mips
Adrian Chadd
adrian at FreeBSD.org
Tue Dec 29 18:25:13 UTC 2020
The branch main has been updated by adrian:
URL: https://cgit.FreeBSD.org/src/commit/?id=1fef838b913a3541cf11b6e412ce3e83381c921a
commit 1fef838b913a3541cf11b6e412ce3e83381c921a
Author: Adrian Chadd <adrian at FreeBSD.org>
AuthorDate: 2020-12-29 01:04:43 +0000
Commit: Adrian Chadd <adrian at FreeBSD.org>
CommitDate: 2020-12-29 18:24:33 +0000
[wlanwds] Fix compiler warnings-as-errors on freebsd gcc-6.4 mips
* Remove unused verbose global; things are now done through syslog
* Mark a variable as unused in handle_rtmsg()
Tested:
* FreeBSD/mips32 using gcc-6.4
---
tools/tools/net80211/wlanwds/wlanwds.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tools/tools/net80211/wlanwds/wlanwds.c b/tools/tools/net80211/wlanwds/wlanwds.c
index 86246c21f5c7..cf1335663388 100644
--- a/tools/tools/net80211/wlanwds/wlanwds.c
+++ b/tools/tools/net80211/wlanwds/wlanwds.c
@@ -84,7 +84,6 @@ static struct wds *wds;
static const char *script = NULL;
static char **ifnets;
static int nifnets = 0;
-static int verbose = 0;
static int discover_on_join = 0;
static void scanforvaps(int s);
@@ -376,6 +375,8 @@ handle_rtmsg(struct rt_msghdr *rtm, ssize_t msglen)
{
struct if_announcemsghdr *ifan;
+ (void) msglen; /* UNUSED */
+
if (rtm->rtm_version != RTM_VERSION) {
syslog(LOG_ERR, "routing message version %d not understood",
rtm->rtm_version);
More information about the dev-commits-src-main
mailing list