Unbreak WARNS=6 builds for C++ code: -Wold-style-definition is not accepted

by the C++ compiler. Filter it out.
This commit is contained in:
Marcel Moolenaar 2010-02-18 01:44:48 +00:00
parent 5aa4bb5b49
commit 96f2d85e89
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=204024

View File

@ -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