svn commit: r204024 - head/share/mk

Marcel Moolenaar marcel at FreeBSD.org
Thu Feb 18 01:44:48 UTC 2010


Author: marcel
Date: Thu Feb 18 01:44:48 2010
New Revision: 204024
URL: http://svn.freebsd.org/changeset/base/204024

Log:
  Unbreak WARNS=6 builds for C++ code: -Wold-style-definition is not accepted
  by the C++ compiler. Filter it out.

Modified:
  head/share/mk/sys.mk

Modified: head/share/mk/sys.mk
==============================================================================
--- head/share/mk/sys.mk	Thu Feb 18 01:15:58 2010	(r204023)
+++ head/share/mk/sys.mk	Thu Feb 18 01:44:48 2010	(r204024)
@@ -66,7 +66,7 @@ CFLAGS		+=	-g
 .endif
 
 CXX		?=	c++
-CXXFLAGS	?=	${CFLAGS:N-std=*:N-Wnested-externs:N-W*-prototypes:N-Wno-pointer-sign}
+CXXFLAGS	?=	${CFLAGS:N-std=*:N-Wnested-externs:N-W*-prototypes:N-Wno-pointer-sign:N-Wold-style-definition}
 PO_CXXFLAGS	?=	${CXXFLAGS}
 
 CPP		?=	cpp


More information about the svn-src-head mailing list