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;
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to