From fe70891a02202ea5442a50695c71f4d1277fad54 Mon Sep 17 00:00:00 2001
From: Dima Dorfman
Date: Sun, 15 Jul 2001 06:46:02 +0000
Subject: [PATCH] Set WARNS=2 on libraries that compile cleanly with it.
Submitted by: Mike Barcroft
---
lib/libcalendar/Makefile | 3 +--
lib/libnetgraph/Makefile | 3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/lib/libcalendar/Makefile b/lib/libcalendar/Makefile
index 601b77cbe5ca..8bba20b726ba 100644
--- a/lib/libcalendar/Makefile
+++ b/lib/libcalendar/Makefile
@@ -1,6 +1,7 @@
# $FreeBSD$
LIB= calendar
+WARNS?= 2
SRCS= calendar.c easter.c
INCS= calendar.h
@@ -12,6 +13,4 @@ MLINKS= calendar.3 easterg.3 calendar.3 easterog.3 calendar.3 easteroj.3 \
calendar.3 ndaysg.3 calendar.3 ndaysj.3 \
calendar.3 week.3 calendar.3 weekday.3
-CFLAGS+=-I. -I${.CURDIR} -Wall
-
.include
diff --git a/lib/libnetgraph/Makefile b/lib/libnetgraph/Makefile
index 43417769125c..bad5679976f3 100644
--- a/lib/libnetgraph/Makefile
+++ b/lib/libnetgraph/Makefile
@@ -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
@@ -10,8 +11,6 @@ SHLIB_MAJOR= 1
SRCS= sock.c msg.c debug.c
INCS= netgraph.h
-CFLAGS+= -Wall
-
MLINKS+= netgraph.3 NgMkSockNode.3
MLINKS+= netgraph.3 NgNameNode.3
MLINKS+= netgraph.3 NgSendMsg.3