From b903ca97efb579077bc19fd134a3b3367d67fd8c Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Tue, 3 Sep 2019 05:55:56 +0000 Subject: [PATCH] Add workarounds for obsolete std::auto_ptr usage in atf. --- lib/atf/libatf-c++/Makefile | 3 +++ libexec/atf/atf-check/Makefile | 3 +++ libexec/atf/atf-sh/Makefile | 3 +++ share/mk/atf.test.mk | 2 ++ 4 files changed, 11 insertions(+) diff --git a/lib/atf/libatf-c++/Makefile b/lib/atf/libatf-c++/Makefile index 03e7d19c4440..c865e6685f1e 100644 --- a/lib/atf/libatf-c++/Makefile +++ b/lib/atf/libatf-c++/Makefile @@ -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 \ diff --git a/libexec/atf/atf-check/Makefile b/libexec/atf/atf-check/Makefile index 4fe6e4e7dbb9..90f6e2a3a0a0 100644 --- a/libexec/atf/atf-check/Makefile +++ b/libexec/atf/atf-check/Makefile @@ -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= diff --git a/libexec/atf/atf-sh/Makefile b/libexec/atf/atf-sh/Makefile index dd8cfaf1775d..8ac0484e3c06 100644 --- a/libexec/atf/atf-sh/Makefile +++ b/libexec/atf/atf-sh/Makefile @@ -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 diff --git a/share/mk/atf.test.mk b/share/mk/atf.test.mk index 28470f2e080d..692b911eecf5 100644 --- a/share/mk/atf.test.mk +++ b/share/mk/atf.test.mk @@ -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)