diff options
Diffstat (limited to 'boost/type_traits/has_logical_not.hpp')
-rw-r--r-- | boost/type_traits/has_logical_not.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/boost/type_traits/has_logical_not.hpp b/boost/type_traits/has_logical_not.hpp index fd99d3cbbe..d36858e1ec 100644 --- a/boost/type_traits/has_logical_not.hpp +++ b/boost/type_traits/has_logical_not.hpp @@ -9,6 +9,11 @@ #ifndef BOOST_TT_HAS_LOGICAL_NOT_HPP_INCLUDED #define BOOST_TT_HAS_LOGICAL_NOT_HPP_INCLUDED +#if defined(__GNUC__) && (__GNUC__*10000 + __GNUC_MINOR__*100 + __GNUC_PATCHLEVEL__ > 40800) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wunused-value" +#endif + #define BOOST_TT_TRAIT_NAME has_logical_not #define BOOST_TT_TRAIT_OP ! #define BOOST_TT_FORBIDDEN_IF\ @@ -20,4 +25,8 @@ #undef BOOST_TT_TRAIT_OP #undef BOOST_TT_FORBIDDEN_IF +#if defined(__GNUC__) && (__GNUC__*10000 + __GNUC_MINOR__*100 + __GNUC_PATCHLEVEL__ > 40800) +#pragma GCC diagnostic pop +#endif + #endif |