Add workarounds for obsolete std::auto_ptr usage in atf.

This commit is contained in:
Dimitry Andric 2019-09-03 05:55:56 +00:00
parent 6a82ac86f0
commit b903ca97ef
4 changed files with 11 additions and 0 deletions

View File

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

View File

@ -38,6 +38,9 @@ MAN= atf-check.1
CFLAGS+= -I${ATF}
CFLAGS+= -DATF_SHELL='"/bin/sh"'
# Silence warnings about std::auto_ptr usage
CWARNFLAGS+= -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 std::auto_ptr usage
CWARNFLAGS+= -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 std::auto_ptr usage
CWARNFLAGS+= -Wno-deprecated-declarations
.endif
.if !empty(ATF_TESTS_SH)