libbsdstat: fix warnings, set WARNS

libbsdstat can build with WARNS=6 with a one line change.
This commit is contained in:
eadler 2014-03-11 01:10:44 +00:00
parent 2a14509d20
commit 6863d65379
2 changed files with 1 additions and 3 deletions

View File

@ -4,8 +4,6 @@ LIB= bsdstat
SHLIB_MAJOR= 1
PRIVATELIB=
WARNS?= 3
SRCS= bsdstat.c
INCS= bsdstat.h

View File

@ -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;