Date: Sun, 29 Aug 2021 10:30:11 GMT From: Dimitry Andric <dim@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 38a2bbfa12b5 - stable/13 - googletest: Silence warnings about deprecated implicit copy constructors Message-ID: <202108291030.17TAUB7k023658@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=38a2bbfa12b5a16a2bcbc6c57ae7cd4b66a1aa1c commit 38a2bbfa12b5a16a2bcbc6c57ae7cd4b66a1aa1c Author: Dimitry Andric <dim@FreeBSD.org> AuthorDate: 2021-08-26 20:06:49 +0000 Commit: Dimitry Andric <dim@FreeBSD.org> CommitDate: 2021-08-29 10:29:21 +0000 googletest: Silence warnings about deprecated implicit copy constructors Our copy of googletest is rather stale, and causes a number of -Werror warnings about implicit copy constructor definitions being deprecated, because several classes have user-declared copy assignment operators. Silence the warnings until we either upgrade or remove googletest. (cherry picked from commit d396c67f26b079c2808002c07212d9df9818a11b) --- lib/googletest/Makefile.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/googletest/Makefile.inc b/lib/googletest/Makefile.inc index 36f7228c079b..b77322df4ee2 100644 --- a/lib/googletest/Makefile.inc +++ b/lib/googletest/Makefile.inc @@ -10,3 +10,6 @@ CXXFLAGS+= ${GTESTS_FLAGS} # Silence warnings about usage of deprecated std::auto_ptr CXXWARNFLAGS+= -Wno-deprecated-declarations + +# Silence warnings about usage of deprecated implicit copy constructors +CXXWARNFLAGS+= -Wno-deprecated-copy
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202108291030.17TAUB7k023658>