From owner-freebsd-audit Sat Jun 23 11:19: 5 2001 Delivered-To: freebsd-audit@freebsd.org Received: from coffee.q9media.com (coffee.q9media.com [216.94.229.19]) by hub.freebsd.org (Postfix) with ESMTP id C3F3437B401 for ; Sat, 23 Jun 2001 11:18:52 -0700 (PDT) (envelope-from mike@coffee.q9media.com) Received: (from mike@localhost) by coffee.q9media.com (8.11.2/8.11.2) id f5NIVUk89438; Sat, 23 Jun 2001 14:31:30 -0400 (EDT) (envelope-from mike) Date: Sat, 23 Jun 2001 14:31:30 -0400 (EDT) Message-Id: <200106231831.f5NIVUk89438@coffee.q9media.com> To: audit@FreeBSD.org From: Mike Barcroft Subject: src/usr.bin warns patch Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I would appreciate it if someone would commit the patch at the end of this message. Also available at: http://testbed.q9media.net/freebsd/usr.bin.20010623.patch BTW, this patch should probably be tested on an alpha before committing. Best regards, Mike Barcroft ----------------------------------------------------------------------- usr.bin.20010623.patch o Set WARNS?=2 on Makefiles that should have it. o Tested on i386; alpha might have additional warnings. Index: usr.bin/basename/Makefile =================================================================== RCS file: /home/ncvs/src/usr.bin/basename/Makefile,v retrieving revision 1.2 diff -u -r1.2 Makefile --- usr.bin/basename/Makefile 1998/12/06 22:58:12 1.2 +++ usr.bin/basename/Makefile 2001/06/23 18:02:36 @@ -1,7 +1,7 @@ # @(#)Makefile 8.1 (Berkeley) 6/6/93 PROG= basename -CFLAGS+=-Wall +WARNS?= 2 MLINKS= basename.1 dirname.1 .include Index: usr.bin/biff/Makefile =================================================================== RCS file: /home/ncvs/src/usr.bin/biff/Makefile,v retrieving revision 1.2 diff -u -r1.2 Makefile --- usr.bin/biff/Makefile 1998/12/06 22:58:12 1.2 +++ usr.bin/biff/Makefile 2001/06/23 18:02:36 @@ -1,6 +1,6 @@ # @(#)Makefile 8.1 (Berkeley) 6/6/93 PROG= biff -CFLAGS+=-Wall +WARNS?= 2 .include Index: usr.bin/cap_mkdb/Makefile =================================================================== RCS file: /home/ncvs/src/usr.bin/cap_mkdb/Makefile,v retrieving revision 1.2 diff -u -r1.2 Makefile --- usr.bin/cap_mkdb/Makefile 1998/12/06 22:58:12 1.2 +++ usr.bin/cap_mkdb/Makefile 2001/06/23 18:02:37 @@ -1,6 +1,6 @@ # @(#)Makefile 8.1 (Berkeley) 6/6/93 PROG= cap_mkdb -CFLAGS+=-Wall +WARNS?= 2 .include Index: usr.bin/colrm/Makefile =================================================================== RCS file: /home/ncvs/src/usr.bin/colrm/Makefile,v retrieving revision 1.2 diff -u -r1.2 Makefile --- usr.bin/colrm/Makefile 1998/12/06 22:58:18 1.2 +++ usr.bin/colrm/Makefile 2001/06/23 18:02:37 @@ -1,6 +1,6 @@ # @(#)Makefile 8.1 (Berkeley) 6/6/93 PROG= colrm -CFLAGS+=-Wall +WARNS?= 2 .include Index: usr.bin/dirname/Makefile =================================================================== RCS file: /home/ncvs/src/usr.bin/dirname/Makefile,v retrieving revision 1.2 diff -u -r1.2 Makefile --- usr.bin/dirname/Makefile 1998/12/06 22:58:20 1.2 +++ usr.bin/dirname/Makefile 2001/06/23 18:02:37 @@ -1,7 +1,7 @@ # @(#)Makefile 8.1 (Berkeley) 6/6/93 PROG= dirname -CFLAGS+=-Wall +WARNS?= 2 NOMAN= noman .include Index: usr.bin/env/Makefile =================================================================== RCS file: /home/ncvs/src/usr.bin/env/Makefile,v retrieving revision 1.2 diff -u -r1.2 Makefile --- usr.bin/env/Makefile 1998/12/06 22:58:22 1.2 +++ usr.bin/env/Makefile 2001/06/23 18:02:38 @@ -1,7 +1,7 @@ # @(#)Makefile 8.1 (Berkeley) 6/6/93 PROG= env -CFLAGS+=-Wall +WARNS?= 2 NOMAN= noman .include Index: usr.bin/file2c/Makefile =================================================================== RCS file: /home/ncvs/src/usr.bin/file2c/Makefile,v retrieving revision 1.5 diff -u -r1.5 Makefile --- usr.bin/file2c/Makefile 2001/03/27 10:51:43 1.5 +++ usr.bin/file2c/Makefile 2001/06/23 18:02:38 @@ -1,5 +1,6 @@ # $FreeBSD: src/usr.bin/file2c/Makefile,v 1.5 2001/03/27 10:51:43 ru Exp $ PROG= file2c +WARNS?= 2 .include Index: usr.bin/fold/Makefile =================================================================== RCS file: /home/ncvs/src/usr.bin/fold/Makefile,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 Makefile --- usr.bin/fold/Makefile 1994/05/27 12:31:17 1.1.1.1 +++ usr.bin/fold/Makefile 2001/06/23 18:02:38 @@ -1,5 +1,6 @@ # @(#)Makefile 8.1 (Berkeley) 6/6/93 PROG= fold +WARNS?= 2 .include Index: usr.bin/from/Makefile =================================================================== RCS file: /home/ncvs/src/usr.bin/from/Makefile,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 Makefile --- usr.bin/from/Makefile 1994/05/27 12:31:22 1.1.1.1 +++ usr.bin/from/Makefile 2001/06/23 18:02:38 @@ -1,5 +1,6 @@ # @(#)Makefile 8.1 (Berkeley) 6/6/93 PROG= from +WARNS?= 2 .include Index: usr.bin/fsync/Makefile =================================================================== RCS file: /home/ncvs/src/usr.bin/fsync/Makefile,v retrieving revision 1.2 diff -u -r1.2 Makefile --- usr.bin/fsync/Makefile 2000/07/19 08:44:26 1.2 +++ usr.bin/fsync/Makefile 2001/06/23 18:02:38 @@ -1,5 +1,6 @@ # $FreeBSD: src/usr.bin/fsync/Makefile,v 1.2 2000/07/19 08:44:26 ps Exp $ PROG= fsync +WARNS?= 2 .include Index: usr.bin/gencat/Makefile =================================================================== RCS file: /home/ncvs/src/usr.bin/gencat/Makefile,v retrieving revision 1.5 diff -u -r1.5 Makefile --- usr.bin/gencat/Makefile 1999/08/28 01:01:40 1.5 +++ usr.bin/gencat/Makefile 2001/06/23 18:02:39 @@ -2,6 +2,7 @@ PROG= gencat SRCS= gencat.c genlib.c +WARNS?= 2 CFLAGS+= -I${.CURDIR}/../../lib/libc/nls Index: usr.bin/key/Makefile =================================================================== RCS file: /home/ncvs/src/usr.bin/key/Makefile,v retrieving revision 1.5 diff -u -r1.5 Makefile --- usr.bin/key/Makefile 2001/03/27 10:51:47 1.5 +++ usr.bin/key/Makefile 2001/06/23 18:02:39 @@ -3,6 +3,7 @@ PROG= key SRCS= skey.c +WARNS?= 2 CFLAGS+= -D_SKEY_INTERNAL Index: usr.bin/keyinfo/Makefile =================================================================== RCS file: /home/ncvs/src/usr.bin/keyinfo/Makefile,v retrieving revision 1.8 diff -u -r1.8 Makefile --- usr.bin/keyinfo/Makefile 2000/11/28 07:24:15 1.8 +++ usr.bin/keyinfo/Makefile 2001/06/23 18:02:40 @@ -2,7 +2,7 @@ # $FreeBSD: src/usr.bin/keyinfo/Makefile,v 1.8 2000/11/28 07:24:15 marcel Exp $ PROG= keyinfo -CFLAGS+=-Wall +WARNS?= 2 DPADD= ${LIBSKEY} ${LIBCRYPT} ${LIBMD} LDADD= -lskey -lcrypt -lmd BINMODE=4555 Index: usr.bin/keyinit/Makefile =================================================================== RCS file: /home/ncvs/src/usr.bin/keyinit/Makefile,v retrieving revision 1.7 diff -u -r1.7 Makefile --- usr.bin/keyinit/Makefile 2001/03/27 10:51:47 1.7 +++ usr.bin/keyinit/Makefile 2001/06/23 18:02:40 @@ -3,6 +3,7 @@ PROG= keyinit SRCS= skeyinit.c +WARNS?= 2 CFLAGS+= -D_SKEY_INTERNAL Index: usr.bin/keylogout/Makefile =================================================================== RCS file: /home/ncvs/src/usr.bin/keylogout/Makefile,v retrieving revision 1.3 diff -u -r1.3 Makefile --- usr.bin/keylogout/Makefile 1999/08/28 01:02:28 1.3 +++ usr.bin/keylogout/Makefile 2001/06/23 18:02:40 @@ -1,6 +1,7 @@ # $FreeBSD: src/usr.bin/keylogout/Makefile,v 1.3 1999/08/28 01:02:28 peter Exp $ PROG= keylogout +WARNS?= 2 DPADD= ${LIBRPCSVC} LDADD= -lrpcsvc Index: usr.bin/leave/Makefile =================================================================== RCS file: /home/ncvs/src/usr.bin/leave/Makefile,v retrieving revision 1.3 diff -u -r1.3 Makefile --- usr.bin/leave/Makefile 1999/08/28 01:02:45 1.3 +++ usr.bin/leave/Makefile 2001/06/23 18:02:41 @@ -2,6 +2,6 @@ # $FreeBSD: src/usr.bin/leave/Makefile,v 1.3 1999/08/28 01:02:45 peter Exp $ PROG= leave -CFLAGS+=-Wall +WARNS?= 2 .include Index: usr.bin/mesg/Makefile =================================================================== RCS file: /home/ncvs/src/usr.bin/mesg/Makefile,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 Makefile --- usr.bin/mesg/Makefile 1994/05/27 12:30:44 1.1.1.1 +++ usr.bin/mesg/Makefile 2001/06/23 18:02:41 @@ -1,5 +1,6 @@ # @(#)Makefile 8.1 (Berkeley) 6/6/93 PROG= mesg +WARNS?= 2 .include Index: usr.bin/mkfifo/Makefile =================================================================== RCS file: /home/ncvs/src/usr.bin/mkfifo/Makefile,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 Makefile --- usr.bin/mkfifo/Makefile 1994/05/27 12:32:19 1.1.1.1 +++ usr.bin/mkfifo/Makefile 2001/06/23 18:02:42 @@ -1,5 +1,6 @@ # @(#)Makefile 8.1 (Berkeley) 6/6/93 PROG= mkfifo +WARNS?= 2 .include Index: usr.bin/strip/Makefile =================================================================== RCS file: /home/ncvs/src/usr.bin/strip/Makefile,v retrieving revision 1.11 diff -u -r1.11 Makefile --- usr.bin/strip/Makefile 2001/03/27 10:52:15 1.11 +++ usr.bin/strip/Makefile 2001/06/23 18:02:45 @@ -2,6 +2,7 @@ # $FreeBSD: src/usr.bin/strip/Makefile,v 1.11 2001/03/27 10:52:15 ru Exp $ PROG= strip +WARNS?= 2 MAN= strip.1aout BINDIR= /usr/libexec/aout CLEANFILES += maybe_stripped Index: usr.bin/truncate/Makefile =================================================================== RCS file: /home/ncvs/src/usr.bin/truncate/Makefile,v retrieving revision 1.1 diff -u -r1.1 Makefile --- usr.bin/truncate/Makefile 2000/07/18 17:03:58 1.1 +++ usr.bin/truncate/Makefile 2001/06/23 18:02:47 @@ -1,5 +1,6 @@ # $FreeBSD: src/usr.bin/truncate/Makefile,v 1.1 2000/07/18 17:03:58 sheldonh Exp $ PROG= truncate +WARNS?= 2 .include Index: usr.bin/unexpand/Makefile =================================================================== RCS file: /home/ncvs/src/usr.bin/unexpand/Makefile,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 Makefile --- usr.bin/unexpand/Makefile 1994/05/27 12:33:15 1.1.1.1 +++ usr.bin/unexpand/Makefile 2001/06/23 18:02:47 @@ -1,6 +1,7 @@ # @(#)Makefile 8.1 (Berkeley) 6/6/93 PROG= unexpand +WARNS?= 2 NOMAN= noman .include Index: usr.bin/what/Makefile =================================================================== RCS file: /home/ncvs/src/usr.bin/what/Makefile,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 Makefile --- usr.bin/what/Makefile 1994/05/27 12:33:28 1.1.1.1 +++ usr.bin/what/Makefile 2001/06/23 18:02:48 @@ -1,5 +1,6 @@ # @(#)Makefile 8.1 (Berkeley) 6/6/93 PROG= what +WARNS?= 2 .include Index: usr.bin/yes/Makefile =================================================================== RCS file: /home/ncvs/src/usr.bin/yes/Makefile,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 Makefile --- usr.bin/yes/Makefile 1994/05/27 12:33:42 1.1.1.1 +++ usr.bin/yes/Makefile 2001/06/23 18:02:48 @@ -1,5 +1,6 @@ # @(#)Makefile 8.1 (Berkeley) 6/6/93 PROG= yes +WARNS?= 2 .include To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message