libbsdstat: fix warnings, set WARNS
libbsdstat can build with WARNS=6 with a one line change.
This commit is contained in:
parent
2a14509d20
commit
6863d65379
@ -4,8 +4,6 @@ LIB= bsdstat
|
||||
SHLIB_MAJOR= 1
|
||||
PRIVATELIB=
|
||||
|
||||
WARNS?= 3
|
||||
|
||||
SRCS= bsdstat.c
|
||||
INCS= bsdstat.h
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user