From f48fd09d021db9a28bd7b8452c175897e1af4485 Mon Sep 17 00:00:00 2001 From: Romain Geissler Date: Thu, 1 Mar 2018 09:59:33 +0100 Subject: [PATCH] Ignore gcc 8 warnings. --- include/boost/mpl/assert.hpp | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/include/boost/mpl/assert.hpp b/include/boost/mpl/assert.hpp index 1af1b05..e41b583 100644 --- a/include/boost/mpl/assert.hpp +++ b/include/boost/mpl/assert.hpp @@ -184,16 +184,27 @@ template< typename P > struct assert_arg_pred_not typedef typename assert_arg_pred_impl

::type type; }; +#if defined(BOOST_GCC) && BOOST_GCC >= 80000 +#define BOOST_MPL_IGNORE_PARENTHESES_WARNING +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wparentheses" +#endif + template< typename Pred > -failed ************ (Pred::************ +failed ************ (Pred::************ assert_arg( void (*)(Pred), typename assert_arg_pred::type ) ); template< typename Pred > -failed ************ (boost::mpl::not_::************ +failed ************ (boost::mpl::not_::************ assert_not_arg( void (*)(Pred), typename assert_arg_pred_not::type ) ); +#ifdef BOOST_MPL_IGNORE_PARENTHESES_WARNING +#undef BOOST_MPL_IGNORE_PARENTHESES_WARNING +#pragma GCC diagnostic pop +#endif + template< typename Pred > AUX778076_ASSERT_ARG(assert) assert_arg( void (*)(Pred), typename assert_arg_pred_not::type );