libbsdstat: fix warnings, set WARNS

libbsdstat can build with WARNS=6 with a one line change.
This commit is contained in:
Eitan Adler 2014-03-11 01:10:44 +00:00
parent 0bd8e9dcc4
commit 801a8f9497
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=262992
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;