Another round of attempting to squelch -Wdeprecated-declarations, which

has become very trigger-happy with libc++ 9.0.0.

It does not help that gcc's implementation of this warning is even more
trigger-happy, in the sense that it already warns on the declaration
itself, not when you are using it.  This is very annoying with our use
of -Wsystem-headers.  That should really be disabled for gcc.
This commit is contained in:
Dimitry Andric 2019-09-17 06:07:08 +00:00
parent c950e61287
commit 2c3f47a727
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/clang900-import/; revision=352435
7 changed files with 21 additions and 0 deletions

View File

@ -48,6 +48,9 @@ CFLAGS+= -I.
CFLAGS+= -DHAVE_CONFIG_H
# Silence warnings about usage of deprecated std::auto_ptr
CXXWARNFLAGS+= -Wno-deprecated-declarations
SRCS= application.cpp \
build.cpp \
check.cpp \

View File

@ -8,4 +8,7 @@ GOOGLETEST_SRCROOT= ${GTEST_DIR}/googletest
CXXFLAGS+= ${GTESTS_FLAGS}
# Silence warnings about usage of deprecated std::auto_ptr
CXXWARNFLAGS+= -Wno-deprecated-declarations
WARNS?= 6

View File

@ -18,4 +18,8 @@ WARNS?= 3
PRIVATELIB= true
SHLIB_MAJOR= 0
# Silence warnings about usage of deprecated std::auto_ptr, and various
# deprecated function objects from <functional>
CXXWARNFLAGS+= -Wno-deprecated-declarations
.include <bsd.lib.mk>

View File

@ -32,6 +32,9 @@ WARNS?= 3
CFLAGS+= -I${.CURDIR}
CWARNFLAGS.gcc+= -Wno-shadow -Wno-cast-align
# Silence warnings about usage of deprecated std::auto_ptr
CXXWARNFLAGS+= -Wno-deprecated-declarations
MAN= pmc.3
MAN+= pmc_allocate.3
MAN+= pmc_attach.3

View File

@ -38,6 +38,9 @@ MAN= atf-check.1
CFLAGS+= -I${ATF}
CFLAGS+= -DATF_SHELL='"/bin/sh"'
# Silence warnings about usage of deprecated std::auto_ptr
CXXWARNFLAGS+= -Wno-deprecated-declarations
LIBADD= atf_cxx
HAS_TESTS=

View File

@ -65,6 +65,9 @@ CFLAGS+= -DATF_PKGDATADIR='"${SHAREDIR}/atf"'
CFLAGS+= -DATF_SHELL='"/bin/sh"'
CFLAGS+= -I${ATF}
# Silence warnings about usage of deprecated std::auto_ptr
CXXWARNFLAGS+= -Wno-deprecated-declarations
LIBADD= atf_cxx
FILESGROUPS= SUBR

View File

@ -55,6 +55,8 @@ LDADD.${_T}+= ${LIBATF_CXX} ${LIBATF_C}
.endif
TEST_INTERFACE.${_T}= atf
.endfor
# Silence warnings about usage of deprecated std::auto_ptr
CXXWARNFLAGS+= -Wno-deprecated-declarations
.endif
.if !empty(ATF_TESTS_SH)