summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreadler <eadler@FreeBSD.org>2014-03-11 01:10:44 +0000
committereadler <eadler@FreeBSD.org>2014-03-11 01:10:44 +0000
commit6863d653795b736b22625849d170db8bad56b471 (patch)
tree855f6640bcf347b62542dcc4fd4705879592f0ab
parent2a14509d20a0104abef984f64abe55142e731020 (diff)
downloadFreeBSD-src-6863d653795b736b22625849d170db8bad56b471.zip
FreeBSD-src-6863d653795b736b22625849d170db8bad56b471.tar.gz
libbsdstat: fix warnings, set WARNS
libbsdstat can build with WARNS=6 with a one line change.
-rw-r--r--lib/libbsdstat/Makefile2
-rw-r--r--lib/libbsdstat/bsdstat.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/lib/libbsdstat/Makefile b/lib/libbsdstat/Makefile
index aaca953..aef0ec2 100644
--- a/lib/libbsdstat/Makefile
+++ b/lib/libbsdstat/Makefile
@@ -4,8 +4,6 @@ LIB= bsdstat
SHLIB_MAJOR= 1
PRIVATELIB=
-WARNS?= 3
-
SRCS= bsdstat.c
INCS= bsdstat.h
diff --git a/lib/libbsdstat/bsdstat.c b/lib/libbsdstat/bsdstat.c
index 9d66731..96fba00 100644
--- a/lib/libbsdstat/bsdstat.c
+++ b/lib/libbsdstat/bsdstat.c
@@ -81,7 +81,7 @@ bsdstat_update_tot(struct bsdstat *sf)
}
static int
-bsdstat_get(struct bsdstat *sf, int s, char b[], size_t bs)
+bsdstat_get(struct bsdstat *sf, int s, char b[] __unused, size_t bs __unused)
{
fprintf(stderr, "%s: don't know how to get stat #%u\n", sf->name, s);
return 0;
OpenPOWER on IntegriCloud