From 6f9d6798a761c1bc84932f3716d49e03e8ada4f4 Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Sat, 8 Feb 2014 13:00:54 +0000 Subject: [PATCH] Suppress spurious GCC warning. --- include/boost/type_traits/has_logical_not.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/boost/type_traits/has_logical_not.hpp b/include/boost/type_traits/has_logical_not.hpp index fd99d3c..d36858e 100644 --- a/include/boost/type_traits/has_logical_not.hpp +++ b/include/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