From ee5b0e6c9772c905061bf599491ff3d79f62d5ac Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Mon, 1 Feb 2016 15:30:32 +0100 Subject: boost: restore auto_ptr patch for boost::spirit Change-Id: If70658c568e746ab8923f8e6a5ad3407bd5e94a0 --- external/boost/UnpackedTarball_boost.mk | 1 + external/boost/boost.wdeprecated-auto_ptr.patch.0 | 46 +++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 external/boost/boost.wdeprecated-auto_ptr.patch.0 (limited to 'external') diff --git a/external/boost/UnpackedTarball_boost.mk b/external/boost/UnpackedTarball_boost.mk index 8e4f58054bfe..10ea672c2634 100644 --- a/external/boost/UnpackedTarball_boost.mk +++ b/external/boost/UnpackedTarball_boost.mk @@ -82,6 +82,7 @@ boost_patches += gcc6-warnings.patch.0 # https://github.com/boostorg/math/commit/74ff2db959c5fa75bec770c41ed2951a740fe936 boost_patches += boost_1_60_0.quadmath.patch boost_patches += boost_1_60_0.undef.warning.patch +boost_patches += boost.wdeprecated-auto_ptr.patch.0 boost_patches += boost_1_60_0.android.undef.warning.patch $(eval $(call gb_UnpackedTarball_UnpackedTarball,boost)) diff --git a/external/boost/boost.wdeprecated-auto_ptr.patch.0 b/external/boost/boost.wdeprecated-auto_ptr.patch.0 new file mode 100644 index 000000000000..cf5842929697 --- /dev/null +++ b/external/boost/boost.wdeprecated-auto_ptr.patch.0 @@ -0,0 +1,46 @@ +--- boost/spirit/home/classic/core/non_terminal/impl/grammar.ipp.orig2 2015-12-15 18:24:31.318854561 +0100 ++++ boost/spirit/home/classic/core/non_terminal/impl/grammar.ipp 2015-12-15 18:26:19.804853629 +0100 +@@ -11,6 +11,11 @@ + #if !defined BOOST_SPIRIT_GRAMMAR_IPP + #define BOOST_SPIRIT_GRAMMAR_IPP + ++#if defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 406) || defined(__clang__) ++# pragma GCC diagnostic push ++# pragma GCC diagnostic ignored "-Wdeprecated-declarations" ++#endif ++ + #if !defined(BOOST_SPIRIT_SINGLE_GRAMMAR_INSTANCE) + #include + #include +@@ -368,4 +373,8 @@ + + }} // namespace boost::spirit + ++#if defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 406) || defined(__clang__) ++# pragma GCC diagnostic pop ++#endif ++ + #endif +--- boost/spirit/home/classic/symbols/impl/tst.ipp.orig 2015-12-15 19:08:48.978831726 +0100 ++++ boost/spirit/home/classic/symbols/impl/tst.ipp 2015-12-15 19:09:35.064831330 +0100 +@@ -9,6 +9,11 @@ + #ifndef BOOST_SPIRIT_TST_IPP + #define BOOST_SPIRIT_TST_IPP + ++#if defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 406) || defined(__clang__) ++# pragma GCC diagnostic push ++# pragma GCC diagnostic ignored "-Wdeprecated-declarations" ++#endif ++ + /////////////////////////////////////////////////////////////////////////////// + #include // for std::auto_ptr + #include +@@ -278,4 +283,8 @@ + + }} // namespace boost::spirit + ++#if defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 406) || defined(__clang__) ++# pragma GCC diagnostic pop ++#endif ++ + #endif -- cgit