aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAdrian Chadd <adrian@FreeBSD.org>2020-12-29 01:04:43 +0000
committerAdrian Chadd <adrian@FreeBSD.org>2020-12-29 18:24:33 +0000
commit1fef838b913a3541cf11b6e412ce3e83381c921a (patch)
treee03d901a3d732d0356483538a721d688fc6128e2 /tools
parentff7c2c5a3bc3321ea7eeab824eff25257e7fbaae (diff)
downloadsrc-1fef838b913a3541cf11b6e412ce3e83381c921a.tar.gz
src-1fef838b913a3541cf11b6e412ce3e83381c921a.zip
[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
Diffstat (limited to 'tools')
-rw-r--r--tools/tools/net80211/wlanwds/wlanwds.c3
1 files changed, 2 insertions, 1 deletions
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);