summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjb <jb@FreeBSD.org>1998-05-13 06:50:09 +0000
committerjb <jb@FreeBSD.org>1998-05-13 06:50:09 +0000
commit12412f8127b81e3b72d4716eeb0f80e6e4873993 (patch)
tree075bfb7149cf26ec8c2e1c5e31de771c5dfe34af
parent395cfb57666bc22c322f87cbe0ab834d2533c1c6 (diff)
downloadFreeBSD-src-12412f8127b81e3b72d4716eeb0f80e6e4873993.zip
FreeBSD-src-12412f8127b81e3b72d4716eeb0f80e6e4873993.tar.gz
Make -Werror i386 specific because -nostinc on alpha spits warnings
for unused static inline functions in header files.
-rw-r--r--usr.sbin/lpr/chkprintcap/Makefile8
-rw-r--r--usr.sbin/lpr/common_source/Makefile7
-rw-r--r--usr.sbin/lpr/lpd/Makefile8
3 files changed, 17 insertions, 6 deletions
diff --git a/usr.sbin/lpr/chkprintcap/Makefile b/usr.sbin/lpr/chkprintcap/Makefile
index 1cbabbf..dd8d8e6 100644
--- a/usr.sbin/lpr/chkprintcap/Makefile
+++ b/usr.sbin/lpr/chkprintcap/Makefile
@@ -1,10 +1,14 @@
-# $Id: Makefile,v 1.2 1997/12/16 17:53:14 bde Exp $
+# $Id: Makefile,v 1.3 1998/03/07 09:47:55 bde Exp $
PROG= chkprintcap
MAN8= chkprintcap.8
-CFLAGS+=-I${.CURDIR}/../common_source -Wall -Werror
+CFLAGS+=-I${.CURDIR}/../common_source -Wall
.PATH: ${.CURDIR}/../common_source
DPADD= ${LIBLPR}
LDADD= ${LIBLPR}
+.if ${MACHINE_ARCH} == "i386"
+CFLAGS+= -Werror
+.endif
+
.include <bsd.prog.mk>
diff --git a/usr.sbin/lpr/common_source/Makefile b/usr.sbin/lpr/common_source/Makefile
index 96151e7..155a907 100644
--- a/usr.sbin/lpr/common_source/Makefile
+++ b/usr.sbin/lpr/common_source/Makefile
@@ -1,4 +1,4 @@
-# $Id$
+# $Id: Makefile,v 1.1 1997/12/02 20:45:17 wollman Exp $
#
# Library of internal routines for the print spooler suite.
@@ -11,8 +11,11 @@ SRCS= common.c displayq.c net.c printcap.c request.c rmjob.c \
NOMAN= noman
NOPROFILE= noprofile
NOPIC= nopic
-CFLAGS+= -Werror -Wall -Wnested-externs -Wmissing-prototypes \
+CFLAGS+= -Wall -Wnested-externs -Wmissing-prototypes \
-Wstrict-prototypes -Wredundant-decls
+.if ${MACHINE_ARCH} == "i386"
+CFLAGS+= -Werror
+.endif
install:
diff --git a/usr.sbin/lpr/lpd/Makefile b/usr.sbin/lpr/lpd/Makefile
index 80ea478..516c0a7 100644
--- a/usr.sbin/lpr/lpd/Makefile
+++ b/usr.sbin/lpr/lpd/Makefile
@@ -1,11 +1,15 @@
# From: @(#)Makefile 8.1 (Berkeley) 6/6/93
-# $Id: Makefile,v 1.5 1997/12/16 17:53:25 bde Exp $
+# $Id: Makefile,v 1.6 1998/03/07 09:47:59 bde Exp $
PROG= lpd
-CFLAGS+=-I${.CURDIR}/../common_source -Wall -Werror
+CFLAGS+=-I${.CURDIR}/../common_source -Wall
MAN8= lpd.8
SRCS= lpd.c printjob.c recvjob.c lpdchar.c modes.c
DPADD= ${LIBLPR}
LDADD= ${LIBLPR}
+.if ${MACHINE_ARCH} == "i386"
+CFLAGS+= -Werror
+.endif
+
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud