svn commit: r201381 - in head: lib lib/csu lib/csu/arm lib/csu/i386-elf lib/csu/mips lib/libarchive lib/libauditd lib/libautofs lib/libbegemot lib/libbsm lib/libbz2 lib/libcalendar lib/libcam lib/l...

Ed Schouten ed at FreeBSD.org
Sat Jan 2 09:58:09 UTC 2010


Author: ed
Date: Sat Jan  2 09:58:07 2010
New Revision: 201381
URL: http://svn.freebsd.org/changeset/base/201381

Log:
  Build lib/ with WARNS=6 by default.
  
  Similar to libexec/, do the same with lib/. Make WARNS=6 the norm and
  lower it when needed.
  
  I'm setting WARNS?=0 for secure/. It seems secure/ includes the
  Makefile.inc provided by lib/. I'm not going to touch that directory.
  Most of the code there is contributed anyway.

Modified:
  head/lib/Makefile.inc
  head/lib/csu/Makefile.inc
  head/lib/csu/arm/Makefile
  head/lib/csu/i386-elf/Makefile
  head/lib/csu/mips/Makefile
  head/lib/libarchive/Makefile
  head/lib/libauditd/Makefile
  head/lib/libautofs/Makefile
  head/lib/libbegemot/Makefile
  head/lib/libbsm/Makefile
  head/lib/libbz2/Makefile
  head/lib/libcalendar/Makefile
  head/lib/libcam/Makefile
  head/lib/libcompat/Makefile
  head/lib/libcrypt/Makefile
  head/lib/libdevinfo/Makefile
  head/lib/libdevstat/Makefile
  head/lib/libdwarf/Makefile
  head/lib/libedit/Makefile
  head/lib/libelf/Makefile
  head/lib/libexpat/Makefile
  head/lib/libftpio/Makefile
  head/lib/libgpib/Makefile
  head/lib/libgssapi/Makefile
  head/lib/libipsec/Makefile
  head/lib/libipx/Makefile
  head/lib/libjail/Makefile
  head/lib/libkiconv/Makefile
  head/lib/libkvm/Makefile
  head/lib/libmagic/Makefile
  head/lib/libmd/Makefile
  head/lib/libmilter/Makefile
  head/lib/libmp/Makefile
  head/lib/libncp/Makefile
  head/lib/libngatm/Makefile
  head/lib/libopie/Makefile
  head/lib/libpam/modules/Makefile.inc
  head/lib/libpam/modules/pam_exec/Makefile
  head/lib/libpam/modules/pam_krb5/Makefile
  head/lib/libpam/modules/pam_radius/Makefile
  head/lib/libpam/modules/pam_ssh/Makefile
  head/lib/libpcap/Makefile
  head/lib/libpmc/Makefile
  head/lib/libproc/Makefile
  head/lib/libradius/Makefile
  head/lib/librpcsec_gss/Makefile
  head/lib/librt/Makefile
  head/lib/libsbuf/Makefile
  head/lib/libsm/Makefile
  head/lib/libsmdb/Makefile
  head/lib/libsmutil/Makefile
  head/lib/libstand/Makefile
  head/lib/libtacplus/Makefile
  head/lib/libthread_db/Makefile
  head/lib/libufs/Makefile
  head/lib/libugidfw/Makefile
  head/lib/libulog/Makefile
  head/lib/libusb/Makefile
  head/lib/libutil/Makefile
  head/lib/libvgl/Makefile
  head/lib/libwrap/Makefile
  head/lib/liby/Makefile
  head/lib/libypclnt/Makefile
  head/lib/libz/Makefile
  head/lib/ncurses/Makefile.inc
  head/secure/Makefile.inc

Modified: head/lib/Makefile.inc
==============================================================================
--- head/lib/Makefile.inc	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/Makefile.inc	Sat Jan  2 09:58:07 2010	(r201381)
@@ -1,3 +1,5 @@
 # $FreeBSD$
 # Default version for system libs (override in <lib>/Makefile if necessary)
 SHLIB_MAJOR?= 5
+
+WARNS?=	6

Modified: head/lib/csu/Makefile.inc
==============================================================================
--- head/lib/csu/Makefile.inc	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/csu/Makefile.inc	Sat Jan  2 09:58:07 2010	(r201381)
@@ -1,3 +1,5 @@
 # $FreeBSD$
 
 SSP_CFLAGS=
+
+WARNS?=	6

Modified: head/lib/csu/arm/Makefile
==============================================================================
--- head/lib/csu/arm/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/csu/arm/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -9,6 +9,8 @@ CFLAGS+=	-Wall -Wno-unused \
 		-I${.CURDIR}/../common \
 		-I${.CURDIR}/../../libc/include
 
+WARNS?=		2
+
 all: ${OBJS}
 
 CLEANFILES=	${OBJS}

Modified: head/lib/csu/i386-elf/Makefile
==============================================================================
--- head/lib/csu/i386-elf/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/csu/i386-elf/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -8,7 +8,6 @@ FILESOWN=	${LIBOWN}
 FILESGRP=	${LIBGRP}
 FILESMODE=	${LIBMODE}
 FILESDIR=	${LIBDIR}
-WARNS?=		6
 CFLAGS+=	-I${.CURDIR}/../common \
 		-I${.CURDIR}/../../libc/include
 CLEANFILES=	${FILES} crt1_c.o crt1_s.o gcrt1_c.o Scrt1_c.o

Modified: head/lib/csu/mips/Makefile
==============================================================================
--- head/lib/csu/mips/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/csu/mips/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -9,6 +9,8 @@ CFLAGS+=	-Wall -Wno-unused \
 		-I${.CURDIR}/../common \
 		-I${.CURDIR}/../../libc/include
 
+WARNS?=		2
+
 all: ${OBJS}
 
 CLEANFILES=	${OBJS}

Modified: head/lib/libarchive/Makefile
==============================================================================
--- head/lib/libarchive/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libarchive/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -22,8 +22,6 @@ DPADD+=	${LIBCRYPTO}
 LDADD+=	-lcrypto
 .endif
 
-WARNS?=	6
-
 # Headers to be installed in /usr/include
 INCS=	archive.h archive_entry.h
 

Modified: head/lib/libauditd/Makefile
==============================================================================
--- head/lib/libauditd/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libauditd/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -17,6 +17,8 @@ SRCS=	auditd_lib.c
 #
 CFLAGS+=	-I${OPENBSMDIR} -I${LIBBSMDIR}
 
+WARNS?=		3
+
 NO_MAN=
 
 .include <bsd.lib.mk>

Modified: head/lib/libautofs/Makefile
==============================================================================
--- head/lib/libautofs/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libautofs/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -3,7 +3,6 @@
 
 LIB=	autofs
 SHLIB_MAJOR= 3
-WARNS?=	4
 
 SRCS=	libautofs.c
 INCS=	libautofs.h

Modified: head/lib/libbegemot/Makefile
==============================================================================
--- head/lib/libbegemot/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libbegemot/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -8,8 +8,6 @@ LIB=	begemot
 SHLIB_MAJOR= 4
 SHLIBDIR?= /lib
 
-# WARNS?=	6
-
 CFLAGS+=	-DUSE_SELECT -DQUADFMT='"ll"'
 SRCS=	rpoll.c
 INCS=	rpoll.h

Modified: head/lib/libbsm/Makefile
==============================================================================
--- head/lib/libbsm/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libbsm/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -33,6 +33,8 @@ SRCS=	bsm_audit.c							\
 #
 CFLAGS+=	-I${OPENBSMDIR} -I${LIBBSMDIR}
 
+WARNS?=		1
+
 INCS=		audit_uevents.h libbsm.h
 INCSDIR=	${INCLUDEDIR}/bsm
 

Modified: head/lib/libbz2/Makefile
==============================================================================
--- head/lib/libbz2/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libbz2/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -10,4 +10,6 @@ SRCS=		bzlib.c blocksort.c compress.c cr
 INCS=		bzlib.h
 CFLAGS+=	-I${BZ2DIR}
 
+WARNS?=		3
+
 .include <bsd.lib.mk>

Modified: head/lib/libcalendar/Makefile
==============================================================================
--- head/lib/libcalendar/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libcalendar/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -1,7 +1,6 @@
 # $FreeBSD$
 
 LIB=	calendar
-WARNS?=	2
 
 SRCS=	calendar.c easter.c
 INCS=	calendar.h

Modified: head/lib/libcam/Makefile
==============================================================================
--- head/lib/libcam/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libcam/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -11,6 +11,7 @@ LDADD=		-lsbuf
 
 MAN=		cam.3 cam_cdbparse.3
 
+WARNS?=		2
 
 MLINKS+=	cam.3 cam_open_device.3 \
 		cam.3 cam_open_spec_device.3 \

Modified: head/lib/libcompat/Makefile
==============================================================================
--- head/lib/libcompat/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libcompat/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -5,6 +5,8 @@ LIB=compat
 CFLAGS+=-DLIBC_SCCS -DSYSLIBC_SCCS -I${.CURDIR}/../libc/locale
 NO_PIC=
 
+WARNS?=	1
+
 .PATH:	${.CURDIR}/4.1/${MACHINE_ARCH} ${.CURDIR}/4.1 \
 	${.CURDIR}/4.3/${MACHINE_ARCH} ${.CURDIR}/4.3 \
 	${.CURDIR}/4.4/${MACHINE_ARCH} ${.CURDIR}/4.4 \

Modified: head/lib/libcrypt/Makefile
==============================================================================
--- head/lib/libcrypt/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libcrypt/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -33,6 +33,8 @@ SRCS+=		auth.c property.c
 CFLAGS+=	-D${sym}=__${sym}
 .endfor
 
+WARNS?=		2
+
 PRECIOUSLIB=
 
 .include <bsd.lib.mk>

Modified: head/lib/libdevinfo/Makefile
==============================================================================
--- head/lib/libdevinfo/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libdevinfo/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -5,4 +5,6 @@ SRCS=	devinfo.c
 INCS=	devinfo.h
 MAN=	devinfo.3
 
+WARNS?=	3
+
 .include <bsd.lib.mk>

Modified: head/lib/libdevstat/Makefile
==============================================================================
--- head/lib/libdevstat/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libdevstat/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -33,6 +33,6 @@ MLINKS+=devstat.3 compute_etime.3
 
 CFLAGS+=-I${.CURDIR}
 
-WARNS?=	2
+WARNS?=	3
 
 .include <bsd.lib.mk>

Modified: head/lib/libdwarf/Makefile
==============================================================================
--- head/lib/libdwarf/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libdwarf/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -23,8 +23,6 @@ CFLAGS+=	-I. -I${.CURDIR}
 
 SHLIB_MAJOR=	2
 
-WARNS?=	6
-
 WITHOUT_MAN=	yes
 
 .include <bsd.lib.mk>

Modified: head/lib/libedit/Makefile
==============================================================================
--- head/lib/libedit/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libedit/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -35,6 +35,8 @@ CFLAGS+= -I. -I${.CURDIR}
 CFLAGS+= #-DDEBUG_TTY -DDEBUG_KEY -DDEBUG_READ -DDEBUG -DDEBUG_REFRESH
 CFLAGS+= #-DDEBUG_PASTE -DDEBUG_EDIT
 
+WARNS?=	1
+
 AHDR=	vi.h emacs.h common.h
 ASRC=	${.CURDIR}/vi.c ${.CURDIR}/emacs.c ${.CURDIR}/common.c
 

Modified: head/lib/libelf/Makefile
==============================================================================
--- head/lib/libelf/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libelf/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -60,8 +60,6 @@ CFLAGS+=	-I. -I${.CURDIR}
 
 SHLIB_MAJOR=	1
 
-WARNS?=	6
-
 MAN=	elf.3							\
 	elf_begin.3						\
 	elf_cntl.3						\

Modified: head/lib/libexpat/Makefile
==============================================================================
--- head/lib/libexpat/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libexpat/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -14,6 +14,8 @@ MAN=		libbsdxml.3
 CFLAGS+= 	-I${.CURDIR} -DHAVE_EXPAT_CONFIG_H
 CLEANFILES=	bsdxml.h bsdxml_external.h
 
+WARNS?=		2
+
 # OK, so it is not entirely unadultered: we ammend the COPYING
 # to point people to the right place, get rid of some VMS stuff
 # and use FreeBSD style indempotency #ifndefs. We also want to

Modified: head/lib/libftpio/Makefile
==============================================================================
--- head/lib/libftpio/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libftpio/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -15,6 +15,8 @@ CLEANFILES=	ftperr.c
 CFLAGS+=	-DINET6
 .endif
 
+WARNS?=		2
+
 ftperr.c:	ftp.errors
 	@echo '#include <stdio.h>' > ${.TARGET}
 	@echo '#include "ftpio.h"' >> ${.TARGET}

Modified: head/lib/libgpib/Makefile
==============================================================================
--- head/lib/libgpib/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libgpib/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -5,6 +5,5 @@ SHLIB_MAJOR=	3
 INCS=		gpib.h
 INCSDIR=	${INCLUDEDIR}/gpib
 SRCS=		ibfoo.c
-WARNS?=		6
 
 .include <bsd.lib.mk>

Modified: head/lib/libgssapi/Makefile
==============================================================================
--- head/lib/libgssapi/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libgssapi/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -2,7 +2,6 @@
 
 LIB=		gssapi
 SHLIB_MAJOR=	10
-WARNS=		6
 VERSION_DEF=	${.CURDIR}/../libc/Versions.def
 SYMBOL_MAPS=	${.CURDIR}/Symbol.map
 

Modified: head/lib/libipsec/Makefile
==============================================================================
--- head/lib/libipsec/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libipsec/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -48,6 +48,8 @@ CLEANFILES+=	y.tab.c y.tab.h
 YFLAGS+=-d -p __libipsecyy
 LFLAGS+=-P__libipsecyy
 
+WARNS?=	2
+
 MAN=	ipsec_set_policy.3 ipsec_strerror.3
 MLINKS+=ipsec_set_policy.3 ipsec_get_policylen.3 \
 	ipsec_set_policy.3 ipsec_dump_policy.3

Modified: head/lib/libipx/Makefile
==============================================================================
--- head/lib/libipx/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libipx/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -6,4 +6,6 @@ SRCS=	ipx_addr.c ipx_ntoa.c
 MAN=	ipx.3
 MLINKS+=ipx.3 ipx_addr.3 ipx.3 ipx_ntoa.3
 
+WARNS?=	2
+
 .include <bsd.lib.mk>

Modified: head/lib/libjail/Makefile
==============================================================================
--- head/lib/libjail/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libjail/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -24,6 +24,4 @@ MLINKS+=jail.3 jailparam_free.3
 
 CFLAGS+=-I${.CURDIR}
 
-WARNS?=	6
-
 .include <bsd.lib.mk>

Modified: head/lib/libkiconv/Makefile
==============================================================================
--- head/lib/libkiconv/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libkiconv/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -15,4 +15,6 @@ MLINKS+=	kiconv.3 kiconv_add_xlat16_cspa
 
 CFLAGS+=	-I${.CURDIR}/../../sys
 
+WARNS?=		1
+
 .include <bsd.lib.mk>

Modified: head/lib/libkvm/Makefile
==============================================================================
--- head/lib/libkvm/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libkvm/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -9,6 +9,8 @@ CFLAGS+=-DLIBC_SCCS -I${.CURDIR}
 CFLAGS+=-DSUN4V
 .endif
 
+WARNS?=	0
+
 SRCS=	kvm.c kvm_${MACHINE_ARCH}.c kvm_cptime.c kvm_file.c kvm_getloadavg.c \
 	kvm_getswapinfo.c kvm_pcpu.c kvm_proc.c kvm_vnet.c
 .if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "arm"

Modified: head/lib/libmagic/Makefile
==============================================================================
--- head/lib/libmagic/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libmagic/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -20,6 +20,8 @@ MAGICPATH?=	/usr/share/misc
 CFLAGS+= -DMAGIC='"${MAGICPATH}/magic"' -DHAVE_CONFIG_H
 CFLAGS+= -I${.CURDIR} -I${CONTRDIR}
 
+WARNS?=		1
+
 CLEANFILES+=	magic magic.mgc
 
 FILES=		magic magic.mgc

Modified: head/lib/libmd/Makefile
==============================================================================
--- head/lib/libmd/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libmd/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -8,6 +8,8 @@ SRCS=	md2c.c md4c.c md5c.c md2hl.c md4hl
 	sha256c.c sha256hl.c
 INCS=	md2.h md4.h md5.h ripemd.h sha.h sha256.h
 
+WARNS?=	0
+
 MAN+=	md2.3 md4.3 md5.3 ripemd.3 sha.3 sha256.3
 MLINKS+=md2.3 MD2Init.3 md2.3 MD2Update.3 md2.3 MD2Final.3
 MLINKS+=md2.3 MD2End.3  md2.3 MD2File.3   md2.3 MD2FileChunk.3

Modified: head/lib/libmilter/Makefile
==============================================================================
--- head/lib/libmilter/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libmilter/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -27,6 +27,8 @@ SRCS+=	main.c engine.c listener.c handle
 	signal.c sm_gethost.c errstring.c strl.c worker.c
 CLEANFILES+=sm_os.h
 
+WARNS?=	0
+
 sm_os.h:
 	ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h
 

Modified: head/lib/libmp/Makefile
==============================================================================
--- head/lib/libmp/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libmp/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -8,7 +8,6 @@ MAN=		libmp.3
 INCS=		mp.h
 SRCS=		mpasbn.c
 
-WARNS?=		6
 CFLAGS+=	-I${.CURDIR}/../../crypto
 
 VERSION_DEF=	${.CURDIR}/../libc/Versions.def

Modified: head/lib/libncp/Makefile
==============================================================================
--- head/lib/libncp/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libncp/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -11,4 +11,6 @@ SRCS=	ncpl_subr.c ncpl_bind.c ncpl_queue
 	ncpl_net.c ncpl_rcfile.c ncpl_conn.c ncpl_nls.c ncpl_msg.c \
 	ncpl_rpc.c ncpl_crypt.c ipx.c sap.c
 
+WARNS?=	0
+
 .include <bsd.lib.mk>

Modified: head/lib/libngatm/Makefile
==============================================================================
--- head/lib/libngatm/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libngatm/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -5,7 +5,6 @@
 LIB=	ngatm
 SHLIB_MAJOR= 4
 MAN=	libngatm.3 uniaddr.3 unifunc.3 unimsg.3 unisap.3 unistruct.3
-WARNS?=	6
 
 # source of the library lives in contrib
 SDIR=	${.CURDIR}/../../sys

Modified: head/lib/libopie/Makefile
==============================================================================
--- head/lib/libopie/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libopie/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -26,6 +26,8 @@ CFLAGS+=-I${.CURDIR} -I${OPIE_DIST} -I${
 ACCESSFILE?=	\"/etc/opieaccess\"
 CFLAGS+=	-DINSECURE_OVERRIDE -DPATH_ACCESS_FILE=${ACCESSFILE}
 
+WARNS?=	0
+
 DPADD=	${LIBMD}
 LDADD=	-lmd
 

Modified: head/lib/libpam/modules/Makefile.inc
==============================================================================
--- head/lib/libpam/modules/Makefile.inc	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libpam/modules/Makefile.inc	Sat Jan  2 09:58:07 2010	(r201381)
@@ -6,7 +6,7 @@ NO_INSTALLLIB=
 NO_PROFILE=
 
 CFLAGS+= -I${PAMDIR}/include -I${.CURDIR}/../../libpam
-WARNS?=	4
+WARNS?=	6
 
 # This is nasty.
 # For the static case, libpam.a depends on the modules.

Modified: head/lib/libpam/modules/pam_exec/Makefile
==============================================================================
--- head/lib/libpam/modules/pam_exec/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libpam/modules/pam_exec/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -4,6 +4,6 @@ LIB=	pam_exec
 SRCS=	pam_exec.c
 MAN=	pam_exec.8
 
-WARNS?=	0
+WARNS?=	1
 
 .include <bsd.lib.mk>

Modified: head/lib/libpam/modules/pam_krb5/Makefile
==============================================================================
--- head/lib/libpam/modules/pam_krb5/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libpam/modules/pam_krb5/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -29,7 +29,6 @@ SRCS=	pam_krb5.c
 MAN=	pam_krb5.8
 .if defined(_FREEFALL_CONFIG)
 CFLAGS+=-D_FREEFALL_CONFIG
-WARNS=	0
 .endif
 
 DPADD=	${LIBKRB5} ${LIBHX509} ${LIBASN1} ${LIBROKEN} ${LIBCOM_ERR} ${LIBCRYPT} ${LIBCRYPTO}

Modified: head/lib/libpam/modules/pam_radius/Makefile
==============================================================================
--- head/lib/libpam/modules/pam_radius/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libpam/modules/pam_radius/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -27,7 +27,7 @@
 LIB=	pam_radius
 SRCS=	pam_radius.c
 MAN=	pam_radius.8
-WARNS=	0
+WARNS?=	3
 
 DPADD=	${LIBRADIUS}
 LDADD=	-lradius

Modified: head/lib/libpam/modules/pam_ssh/Makefile
==============================================================================
--- head/lib/libpam/modules/pam_ssh/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libpam/modules/pam_ssh/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -10,7 +10,7 @@ SRCS=	pam_ssh.c
 # required when linking with a dynamic libssh
 SRCS+=	roaming_dummy.c
 
-WARNS?=	0
+WARNS?=	3
 CFLAGS+= -I${SSHDIR} -include ssh_namespace.h
 
 DPADD=	${LIBSSH} ${LIBCRYPTO} ${LIBCRYPT}

Modified: head/lib/libpcap/Makefile
==============================================================================
--- head/lib/libpcap/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libpcap/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -97,6 +97,8 @@ CFLAGS+=-DINET6
 CFLAGS+=-DHAVE_NET_PFVAR_H
 .endif
 
+WARNS?=	0
+
 SHLIB_MAJOR=7
 
 #

Modified: head/lib/libpmc/Makefile
==============================================================================
--- head/lib/libpmc/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libpmc/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -5,8 +5,6 @@ LIB=	pmc
 SRCS=	libpmc.c pmclog.c
 INCS=	pmc.h pmclog.h
 
-WARNS?=	6
-
 MAN=	pmc.3
 MAN+=	pmc_allocate.3
 MAN+=	pmc_attach.3

Modified: head/lib/libproc/Makefile
==============================================================================
--- head/lib/libproc/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libproc/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -13,8 +13,6 @@ CFLAGS+=	-I. -I${.CURDIR}
 
 SHLIB_MAJOR=	2
 
-WARNS?=	6
-
 WITHOUT_MAN=	yes
 
 .include <bsd.lib.mk>

Modified: head/lib/libradius/Makefile
==============================================================================
--- head/lib/libradius/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libradius/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -33,6 +33,8 @@ CFLAGS+=	-Wall
 SHLIB_MAJOR=	4
 MAN=		libradius.3 radius.conf.5
 
+WARNS?=		3
+
 .if ${MK_OPENSSL} == "no"
 DPADD=		${LIBMD}
 LDADD=		-lmd

Modified: head/lib/librpcsec_gss/Makefile
==============================================================================
--- head/lib/librpcsec_gss/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/librpcsec_gss/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -2,7 +2,6 @@
 
 LIB=	rpcsec_gss
 SHLIB_MAJOR= 1
-WARNS?=	6
 SRCS+=	rpcsec_gss.c rpcsec_gss_prot.c rpcsec_gss_conf.c rpcsec_gss_misc.c \
 	svc_rpcsec_gss.c
 

Modified: head/lib/librt/Makefile
==============================================================================
--- head/lib/librt/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/librt/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -6,6 +6,8 @@ CFLAGS+=-I${.CURDIR}/../libc/include -I$
 CFLAGS+=-Winline -Wall -g
 LDADD+=-lpthread
 
+WARNS?=	2
+
 #MAN=	libthr.3
 
 SRCS+= aio.c mq.c sigev_thread.c timer.c

Modified: head/lib/libsbuf/Makefile
==============================================================================
--- head/lib/libsbuf/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libsbuf/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -3,7 +3,6 @@
 LIB=	sbuf
 SHLIBDIR?= /lib
 SRCS=	subr_sbuf.c 
-WARNS?= 2
 
 .PATH:	${.CURDIR}/../../sys/kern
 

Modified: head/lib/libsm/Makefile
==============================================================================
--- head/lib/libsm/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libsm/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -15,6 +15,8 @@ CFLAGS+=-DNETINET6
 # User customizations to the sendmail build environment
 CFLAGS+=${SENDMAIL_CFLAGS}
 
+WARNS?=	2
+
 LIB=	sm
 
 SRCS+=	sm_os.h

Modified: head/lib/libsmdb/Makefile
==============================================================================
--- head/lib/libsmdb/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libsmdb/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -9,6 +9,8 @@ CFLAGS+=-DNEWDB -DNOT_SENDMAIL
 # User customizations to the sendmail build environment
 CFLAGS+=${SENDMAIL_CFLAGS}
 
+WARNS?=	3
+
 LIB=	smdb
 
 SRCS+=	sm_os.h

Modified: head/lib/libsmutil/Makefile
==============================================================================
--- head/lib/libsmutil/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libsmutil/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -9,6 +9,8 @@ CFLAGS+=-DNEWDB -DNIS -DMAP_REGEX -DNOT_
 # User customizations to the sendmail build environment
 CFLAGS+=${SENDMAIL_CFLAGS}
 
+WARNS?=	2
+
 LIB=	smutil
 
 SRCS+=	sm_os.h

Modified: head/lib/libstand/Makefile
==============================================================================
--- head/lib/libstand/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libstand/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -15,6 +15,8 @@ NO_PIC=
 INCS=		stand.h
 MAN=		libstand.3
 
+WARNS?=		0
+
 CFLAGS+= -ffreestanding -Wformat
 CFLAGS+= -I${.CURDIR}
 

Modified: head/lib/libtacplus/Makefile
==============================================================================
--- head/lib/libtacplus/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libtacplus/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -33,4 +33,6 @@ LDADD=		-lmd
 SHLIB_MAJOR=	4
 MAN=		libtacplus.3 tacplus.conf.5
 
+WARNS?=		2
+
 .include <bsd.lib.mk>

Modified: head/lib/libthread_db/Makefile
==============================================================================
--- head/lib/libthread_db/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libthread_db/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -9,7 +9,6 @@ SRCS+=	libpthread_md.c
 SRCS+=	libpthread_db.c
 SRCS+=	libthr_db.c
 INCS=	thread_db.h
-WARNS?= 6
 
 CFLAGS+=-I. -I${.CURDIR}
 SYM_MAPS+=${.CURDIR}/Symbol.map

Modified: head/lib/libufs/Makefile
==============================================================================
--- head/lib/libufs/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libufs/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -16,7 +16,7 @@ MLINKS+= ufs_disk_close.3 ufs_disk_fillo
 MLINKS+= ufs_disk_close.3 ufs_disk_fillout_blank.3
 MLINKS+= ufs_disk_close.3 ufs_disk_write.3
 
-WARNS?=	2
+WARNS?=	3
 
 CFLAGS+= -D_LIBUFS
 .if defined(LIBUFS_DEBUG)

Modified: head/lib/libugidfw/Makefile
==============================================================================
--- head/lib/libugidfw/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libugidfw/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -5,6 +5,8 @@ SHLIB_MAJOR=	4
 SRCS=		ugidfw.c
 INCS=		ugidfw.h
 
+WARNS?=		2
+
 MAN+=		bsde_get_rule.3 bsde_get_rule_count.3 bsde_parse_rule.3 \
 		bsde_rule_to_string.3 libugidfw.3
 

Modified: head/lib/libulog/Makefile
==============================================================================
--- head/lib/libulog/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libulog/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -33,8 +33,6 @@ MLINKS+=ulog_endutxent.3 endutxent.3 \
 	ulog_pututxline.3 pututxline.3 \
 	ulog_setutxent.3 setutxent.3
 
-WARNS?=	6
-
 VERSION_DEF= ${.CURDIR}/../libc/Versions.def
 SYMBOL_MAPS= ${.CURDIR}/Symbol.map
 

Modified: head/lib/libusb/Makefile
==============================================================================
--- head/lib/libusb/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libusb/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -16,6 +16,8 @@ MAN=		libusb.3 libusb20.3
 MKLINT=		no
 NOGCCERROR=
 
+WARNS?=		2
+
 MLINKS+=	libusb.3 usb.3
 
 # libusb 0.1 compat

Modified: head/lib/libutil/Makefile
==============================================================================
--- head/lib/libutil/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libutil/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -16,8 +16,6 @@ SRCS=	_secure_path.c auth.c expand_numbe
 	stub.c trimdomain.c uucplock.c
 INCS=	libutil.h login_cap.h
 
-WARNS?=	6
-
 CFLAGS+= -DLIBC_SCCS
 
 .if ${MK_INET6_SUPPORT} != "no"

Modified: head/lib/libvgl/Makefile
==============================================================================
--- head/lib/libvgl/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libvgl/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -5,6 +5,7 @@ CFLAGS+=-Wall -I${.CURDIR}
 SRCS=	main.c simple.c bitmap.c text.c mouse.c keyboard.c
 INCS=	vgl.h
 MAN=	vgl.3
+WARNS?=	2
 MLINKS+=	vgl.3 VGLBitmapAllocateBits.3 \
 		vgl.3 VGLBitmapCopy.3 \
 		vgl.3 VGLBitmapCreate.3 \

Modified: head/lib/libwrap/Makefile
==============================================================================
--- head/lib/libwrap/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libwrap/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -28,6 +28,8 @@ CFLAGS+= -DUSE_GETDOMAIN
 CFLAGS+=-DINET6
 .endif
 
+WARNS?=	0
+
 SRCS=	clean_exit.c diag.c eval.c fix_options.c fromhost.c \
 	hosts_access.c hosts_ctl.c misc.c myvsyslog.c options.c \
 	percent_m.c percent_x.c refuse.c rfc931.c shell_cmd.c \

Modified: head/lib/liby/Makefile
==============================================================================
--- head/lib/liby/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/liby/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -1,7 +1,9 @@
 # $FreeBSD$
 
-LIB=		y
+LIB=	y
 SRCS=	main.c yyerror.c
 NO_PIC=
 
+WARNS?=	1
+
 .include <bsd.lib.mk>

Modified: head/lib/libypclnt/Makefile
==============================================================================
--- head/lib/libypclnt/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libypclnt/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -12,7 +12,6 @@ CLEANFILES+= ${GENSRCS}
 INCS= ypclnt.h
 
 CFLAGS+= -I.
-WARNS?=	5
 
 GENSRCS=yp.h \
 	yp_clnt.c \

Modified: head/lib/libz/Makefile
==============================================================================
--- head/lib/libz/Makefile	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/libz/Makefile	Sat Jan  2 09:58:07 2010	(r201381)
@@ -13,6 +13,8 @@ MAN=		zlib.3
 
 CFLAGS+=	-DHAS_snprintf -DHAS_vsnprintf
 
+WARNS?=		3
+
 CLEANFILES+=	example.o example foo.gz minigzip.o minigzip
 
 SRCS = adler32.c compress.c crc32.c gzio.c uncompr.c deflate.c trees.c \

Modified: head/lib/ncurses/Makefile.inc
==============================================================================
--- head/lib/ncurses/Makefile.inc	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/lib/ncurses/Makefile.inc	Sat Jan  2 09:58:07 2010	(r201381)
@@ -2,4 +2,6 @@
 
 # This is to include src/lib/Makefile.inc
 
+WARNS?=	3
+
 .include "../Makefile.inc"

Modified: head/secure/Makefile.inc
==============================================================================
--- head/secure/Makefile.inc	Sat Jan  2 09:50:19 2010	(r201380)
+++ head/secure/Makefile.inc	Sat Jan  2 09:58:07 2010	(r201381)
@@ -15,3 +15,5 @@ CFLAGS+= -DNO_IDEA
 .if ${MK_OPENSSH} != "no"
 SSHDIR=		${.CURDIR}/../../../crypto/openssh
 .endif
+
+WARNS?=		0


More information about the svn-src-head mailing list