From owner-svn-src-all@FreeBSD.ORG Tue Mar 11 01:10:45 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8C993706; Tue, 11 Mar 2014 01:10:45 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 73D2E9A0; Tue, 11 Mar 2014 01:10:45 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s2B1Aj4v069409; Tue, 11 Mar 2014 01:10:45 GMT (envelope-from eadler@svn.freebsd.org) Received: (from eadler@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s2B1Ajkl069407; Tue, 11 Mar 2014 01:10:45 GMT (envelope-from eadler@svn.freebsd.org) Message-Id: <201403110110.s2B1Ajkl069407@svn.freebsd.org> From: Eitan Adler Date: Tue, 11 Mar 2014 01:10:45 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r262992 - head/lib/libbsdstat X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Mar 2014 01:10:45 -0000 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;