mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 09:10:28 +00:00
libbsdstat: fix warnings, set WARNS
libbsdstat can build with WARNS=6 with a one line change.
This commit is contained in:
parent
0bd8e9dcc4
commit
801a8f9497
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=262992
|
@ -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 a new issue