From 801a8f949794563630ff433d1942f27c6fa36ebf Mon Sep 17 00:00:00 2001 From: Eitan Adler Date: Tue, 11 Mar 2014 01:10:44 +0000 Subject: [PATCH] libbsdstat: fix warnings, set WARNS libbsdstat can build with WARNS=6 with a one line change. --- lib/libbsdstat/Makefile | 2 -- lib/libbsdstat/bsdstat.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/libbsdstat/Makefile b/lib/libbsdstat/Makefile index aaca95336ea4..aef0ec241923 100644 --- a/lib/libbsdstat/Makefile +++ b/lib/libbsdstat/Makefile @@ -4,8 +4,6 @@ LIB= bsdstat SHLIB_MAJOR= 1 PRIVATELIB= -WARNS?= 3 - SRCS= bsdstat.c INCS= bsdstat.h diff --git a/lib/libbsdstat/bsdstat.c b/lib/libbsdstat/bsdstat.c index 9d667313f1bd..96fba009ba5e 100644 --- a/lib/libbsdstat/bsdstat.c +++ b/lib/libbsdstat/bsdstat.c @@ -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;