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:
parent
c950e61287
commit
2c3f47a727
@ -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 \
|
||||
|
@ -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
|
||||
|
@ -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>
|
||||
|
@ -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
|
||||
|
@ -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=
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user