diff options
Diffstat (limited to 'boost/spirit/home/support/utree/operators.hpp')
-rw-r--r-- | boost/spirit/home/support/utree/operators.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/boost/spirit/home/support/utree/operators.hpp b/boost/spirit/home/support/utree/operators.hpp index 39b1d64ac5..1858ef4cfd 100644 --- a/boost/spirit/home/support/utree/operators.hpp +++ b/boost/spirit/home/support/utree/operators.hpp @@ -535,7 +535,14 @@ namespace boost { namespace spirit BOOST_SPIRIT_UTREE_CREATE_INTEGRAL_FUNCTION(bitxor_, a^b) BOOST_SPIRIT_UTREE_CREATE_INTEGRAL_FUNCTION(shift_left, a<<b) BOOST_SPIRIT_UTREE_CREATE_INTEGRAL_FUNCTION(shift_right, a>>b) +#if defined(__GNUC__) && (__GNUC__ >= 7) +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wbool-operation" // '~' on an expression of type bool +#endif BOOST_SPIRIT_UTREE_CREATE_INTEGRAL_FUNCTION(invert, ~a) +#if defined(__GNUC__) && (__GNUC__ >= 7) +# pragma GCC diagnostic pop +#endif inline utree operator&&(utree const& a, utree const& b) { |