svn commit: r262992 - head/lib/libbsdstat
Eitan Adler
eadler at FreeBSD.org
Tue Mar 11 01:10:45 UTC 2014
Author: eadler
Date: Tue Mar 11 01:10:44 2014
New Revision: 262992
URL: http://svnweb.freebsd.org/changeset/base/262992
Log:
libbsdstat: fix warnings, set WARNS
libbsdstat can build with WARNS=6 with a one line change.
Modified:
head/lib/libbsdstat/Makefile
head/lib/libbsdstat/bsdstat.c
Modified: head/lib/libbsdstat/Makefile
==============================================================================
--- head/lib/libbsdstat/Makefile Tue Mar 11 00:25:55 2014 (r262991)
+++ head/lib/libbsdstat/Makefile Tue Mar 11 01:10:44 2014 (r262992)
@@ -4,8 +4,6 @@ LIB= bsdstat
SHLIB_MAJOR= 1
PRIVATELIB=
-WARNS?= 3
-
SRCS= bsdstat.c
INCS= bsdstat.h
Modified: head/lib/libbsdstat/bsdstat.c
==============================================================================
--- head/lib/libbsdstat/bsdstat.c Tue Mar 11 00:25:55 2014 (r262991)
+++ head/lib/libbsdstat/bsdstat.c Tue Mar 11 01:10:44 2014 (r262992)
@@ -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;
More information about the svn-src-all
mailing list