Date: Tue, 29 Dec 2020 18:25:12 GMT From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 1fef838b913a - main - [wlanwds] Fix compiler warnings-as-errors on freebsd gcc-6.4 mips Message-ID: <202012291825.0BTIPCtE055831@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by adrian: URL: https://cgit.FreeBSD.org/src/commit/?id=1fef838b913a3541cf11b6e412ce3e83381c921a commit 1fef838b913a3541cf11b6e412ce3e83381c921a Author: Adrian Chadd <adrian@FreeBSD.org> AuthorDate: 2020-12-29 01:04:43 +0000 Commit: Adrian Chadd <adrian@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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202012291825.0BTIPCtE055831>