Module Name: src Committed By: joerg Date: Mon May 23 14:32:05 UTC 2011
Modified Files: src/share/mk: bsd.sys.mk Log Message: Disable Clang's array boundary checker for now (hits e.g. in GCC and BDB) To generate a diff of this commit: cvs rdiff -u -r1.197 -r1.198 src/share/mk/bsd.sys.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/share/mk/bsd.sys.mk diff -u src/share/mk/bsd.sys.mk:1.197 src/share/mk/bsd.sys.mk:1.198 --- src/share/mk/bsd.sys.mk:1.197 Sun May 22 20:52:12 2011 +++ src/share/mk/bsd.sys.mk Mon May 23 14:32:05 2011 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.sys.mk,v 1.197 2011/05/22 20:52:12 joerg Exp $ +# $NetBSD: bsd.sys.mk,v 1.198 2011/05/23 14:32:05 joerg Exp $ # # Build definitions used for NetBSD source tree builds. @@ -20,6 +20,7 @@ .if defined(WARNS) .if ${WARNS} > 0 CFLAGS+= -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith +CFLAGS+= ${${ACTIVE_CC} == "clang":? -Wno-array-bounds :} #CFLAGS+= -Wmissing-declarations -Wredundant-decls -Wnested-externs # Add -Wno-sign-compare. -Wsign-compare is included in -Wall as of GCC 3.3, # but our sources aren't up for it yet. Also, add -Wno-traditional because