summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2019-09-17 06:07:08 +0000
committerDimitry Andric <dim@FreeBSD.org>2019-09-17 06:07:08 +0000
commit2c3f47a727372086b41ef9ce06eb1f1eb83a67d3 (patch)
tree16776cbea9306a47d305b06192510a01f4300c9e
parentc950e612873480cd06b61cae2cc024675d6cacd4 (diff)
Notes
-rw-r--r--lib/atf/libatf-c++/Makefile3
-rw-r--r--lib/googletest/Makefile.inc3
-rw-r--r--lib/libdevdctl/Makefile4
-rw-r--r--lib/libpmc/Makefile3
-rw-r--r--libexec/atf/atf-check/Makefile3
-rw-r--r--libexec/atf/atf-sh/Makefile3
-rw-r--r--share/mk/atf.test.mk2
7 files changed, 21 insertions, 0 deletions
diff --git a/lib/atf/libatf-c++/Makefile b/lib/atf/libatf-c++/Makefile
index 03e7d19c44405..cacf87520d2d4 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 usage of deprecated std::auto_ptr
+CXXWARNFLAGS+= -Wno-deprecated-declarations
+
SRCS= application.cpp \
build.cpp \
check.cpp \
diff --git a/lib/googletest/Makefile.inc b/lib/googletest/Makefile.inc
index cf6e98b5d8ab5..319ce6ec7ec62 100644
--- a/lib/googletest/Makefile.inc
+++ b/lib/googletest/Makefile.inc
@@ -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
diff --git a/lib/libdevdctl/Makefile b/lib/libdevdctl/Makefile
index 5a18a14af6224..60c59c0ea929a 100644
--- a/lib/libdevdctl/Makefile
+++ b/lib/libdevdctl/Makefile
@@ -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>
diff --git a/lib/libpmc/Makefile b/lib/libpmc/Makefile
index 35af606a72258..03b8ac44af953 100644
--- a/lib/libpmc/Makefile
+++ b/lib/libpmc/Makefile
@@ -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
diff --git a/libexec/atf/atf-check/Makefile b/libexec/atf/atf-check/Makefile
index 4fe6e4e7dbb91..b6ef6778403ab 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 usage of deprecated std::auto_ptr
+CXXWARNFLAGS+= -Wno-deprecated-declarations
+
LIBADD= atf_cxx
HAS_TESTS=
diff --git a/libexec/atf/atf-sh/Makefile b/libexec/atf/atf-sh/Makefile
index dd8cfaf1775da..d04816f8a591d 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 usage of deprecated std::auto_ptr
+CXXWARNFLAGS+= -Wno-deprecated-declarations
+
LIBADD= atf_cxx
FILESGROUPS= SUBR
diff --git a/share/mk/atf.test.mk b/share/mk/atf.test.mk
index 28470f2e080d5..e7a8c82b7a8fe 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 usage of deprecated std::auto_ptr
+CXXWARNFLAGS+= -Wno-deprecated-declarations
.endif
.if !empty(ATF_TESTS_SH)