Module Name:    src
Committed By:   joerg
Date:           Tue Aug  9 13:04:28 UTC 2011

Modified Files:
        src/usr.sbin/altq/altqd: Makefile
        src/usr.sbin/dhcp: Makefile.inc

Log Message:
Passes with the relaxed array boundary check in clang


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/usr.sbin/altq/altqd/Makefile
cvs rdiff -u -r1.25 -r1.26 src/usr.sbin/dhcp/Makefile.inc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/altq/altqd/Makefile
diff -u src/usr.sbin/altq/altqd/Makefile:1.5 src/usr.sbin/altq/altqd/Makefile:1.6
--- src/usr.sbin/altq/altqd/Makefile:1.5	Wed Jun 22 05:23:54 2011
+++ src/usr.sbin/altq/altqd/Makefile	Tue Aug  9 13:04:28 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.5 2011/06/22 05:23:54 mrg Exp $
+#	$NetBSD: Makefile,v 1.6 2011/08/09 13:04:28 joerg Exp $
 
 .include <bsd.own.mk>
 
@@ -20,5 +20,5 @@
 
 # XXX
 .if ${HAVE_GCC} == 45
-COPTS.altqd.c+=	-Wno-array-bounds
+COPTS.altqd.c+=	${${ACTIVE_CC} == "gcc":?-Wno-array-bounds:}
 .endif

Index: src/usr.sbin/dhcp/Makefile.inc
diff -u src/usr.sbin/dhcp/Makefile.inc:1.25 src/usr.sbin/dhcp/Makefile.inc:1.26
--- src/usr.sbin/dhcp/Makefile.inc:1.25	Mon Jun 20 07:44:02 2011
+++ src/usr.sbin/dhcp/Makefile.inc	Tue Aug  9 13:04:28 2011
@@ -1,11 +1,11 @@
-# $NetBSD: Makefile.inc,v 1.25 2011/06/20 07:44:02 mrg Exp $
+# $NetBSD: Makefile.inc,v 1.26 2011/08/09 13:04:28 joerg Exp $
 
 WARNS?=	1	# XXX -Wshadow -Wcast-qual -Wsign-compare
 
 .include <bsd.own.mk>
 
 USE_FORT?= yes	# network client/server
-CWARNFLAGS.clang+=	-Wno-tautological-compare -Wno-array-bounds \
+CWARNFLAGS.clang+=	-Wno-tautological-compare \
 			-Wno-conversion -Wno-constant-logical-operand \
 			-Wno-format-security
 

Reply via email to