Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Jul 2001 23:37:05 -0400 (EDT)
From:      Mike Barcroft <mike@q9media.com>
To:        audit@FreeBSD.org
Cc:        Dima Dorfman <dima@unixfreak.org>
Subject:   src/lib warns patch
Message-ID:  <200107030337.f633b5u06329@coffee.q9media.com>

next in thread | raw e-mail | index | archive | help
I would appreciate it if someone would review and commit the patch
at the end of this message.  Also available at:
http://testbed.q9media.net/freebsd/lib.20010702.patch

This patch needs to be tested on an Alpha before committing.  This
patch has also been tested with -fno-builtin.

Best regards,
Mike Barcroft

-----------------------------------------------------------------------

lib.20010702.patch

o Set WARNS?=2 on Makefiles that should have it.
o Tested on i386; alpha might have additional warnings.


Index: libcalendar/Makefile
===================================================================
RCS file: /home/ncvs/src/lib/libcalendar/Makefile,v
retrieving revision 1.5
diff -u -r1.5 Makefile
--- libcalendar/Makefile	2001/03/27 17:26:57	1.5
+++ libcalendar/Makefile	2001/07/03 03:15:03
@@ -1,6 +1,7 @@
 # $FreeBSD: src/lib/libcalendar/Makefile,v 1.5 2001/03/27 17:26:57 ru Exp $
 
 LIB=	calendar
+WARNS?=	2
 
 SRCS=	calendar.c easter.c
 INCS=	calendar.h
@@ -12,6 +13,6 @@
 	calendar.3 ndaysg.3 calendar.3 ndaysj.3 \
 	calendar.3 week.3 calendar.3 weekday.3
 
-CFLAGS+=-I. -I${.CURDIR} -Wall
+CFLAGS+=-I. -I${.CURDIR}
 
 .include <bsd.lib.mk>
Index: libcom_err/Makefile
===================================================================
RCS file: /home/ncvs/src/lib/libcom_err/Makefile,v
retrieving revision 1.12
diff -u -r1.12 Makefile
--- libcom_err/Makefile	2001/03/27 17:26:58	1.12
+++ libcom_err/Makefile	2001/07/03 03:15:03
@@ -1,6 +1,7 @@
 # $FreeBSD: src/lib/libcom_err/Makefile,v 1.12 2001/03/27 17:26:58 ru Exp $
 
 LIB=	com_err
+WARNS?=	2
 SRCS=	com_err.c error.c
 INCS=	${COM_ERRDIR}/com_err.h ${COM_ERRDIR}/com_right.h
 MAN=	com_err.3
Index: libgnumalloc/Makefile
===================================================================
RCS file: /home/ncvs/src/lib/libgnumalloc/Makefile,v
retrieving revision 1.14
diff -u -r1.14 Makefile
--- libgnumalloc/Makefile	1999/08/28 00:04:41	1.14
+++ libgnumalloc/Makefile	2001/07/03 03:15:03
@@ -1,6 +1,7 @@
 # $FreeBSD: src/lib/libgnumalloc/Makefile,v 1.14 1999/08/28 00:04:41 peter Exp $
 
 LIB=		gnumalloc
+WARNS?=		2
 INTERNALLIB=	yes		# Do not build or install ${LIB}*.a
 SHLIB_MAJOR=	2
 SHLIB_MINOR=	0
Index: libnetgraph/Makefile
===================================================================
RCS file: /home/ncvs/src/lib/libnetgraph/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- libnetgraph/Makefile	2001/03/27 17:27:09	1.6
+++ libnetgraph/Makefile	2001/07/03 03:15:03
@@ -2,6 +2,7 @@
 # $Whistle: Makefile,v 1.4 1999/01/17 03:41:02 julian Exp $
 
 LIB=		netgraph
+WARNS?=		2
 MAN=		netgraph.3
 
 SHLIB_MAJOR=	1
@@ -9,8 +10,6 @@
 
 SRCS=		sock.c msg.c debug.c
 INCS=		netgraph.h
-
-CFLAGS+=	-Wall
 
 MLINKS+=	netgraph.3 NgMkSockNode.3
 MLINKS+=	netgraph.3 NgNameNode.3
Index: libresolv/Makefile
===================================================================
RCS file: /home/ncvs/src/lib/libresolv/Makefile,v
retrieving revision 1.10
diff -u -r1.10 Makefile
--- libresolv/Makefile	1998/10/11 04:21:56	1.10
+++ libresolv/Makefile	2001/07/03 03:15:03
@@ -1,6 +1,7 @@
 #	@(#)Makefile	8.1 (Berkeley) 6/4/93
 
 LIB=		resolv
+WARNS?=		2
 INTERNALLIB=	yes		# Do not build or install ${LIB}*.a
 SHLIB_MAJOR=	2
 SHLIB_MINOR=	0

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-audit" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200107030337.f633b5u06329>