diff --git a/test/has_binary_operators.hpp b/test/has_binary_operators.hpp index 8d29df3..99be9a4 100644 --- a/test/has_binary_operators.hpp +++ b/test/has_binary_operators.hpp @@ -6,6 +6,12 @@ #ifndef TT_HAS_BINARY_OPERATORS_HPP #define TT_HAS_BINARY_OPERATORS_HPP +#if defined(__GNUC__) && (__GNUC__*10000 + __GNUC_MINOR__*100 + __GNUC_PATCHLEVEL__ > 40900) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wunused-function" +#endif + + // test with one template parameter #define TEST_T(TYPE,RESULT) BOOST_CHECK_INTEGRAL_CONSTANT((::boost::BOOST_TT_TRAIT_NAME::value), RESULT) // test with one template parameter plus return value @@ -142,4 +148,8 @@ void common() { } +#if defined(__GNUC__) && (__GNUC__*10000 + __GNUC_MINOR__*100 + __GNUC_PATCHLEVEL__ > 40900) +#pragma GCC diagnostic pop +#endif + #endif diff --git a/test/has_prefix_operators.hpp b/test/has_prefix_operators.hpp index 24646bb..dc87700 100644 --- a/test/has_prefix_operators.hpp +++ b/test/has_prefix_operators.hpp @@ -6,6 +6,11 @@ #ifndef TT_HAS_PREFIX_OPERATORS_HPP #define TT_HAS_PREFIX_OPERATORS_HPP +#if defined(__GNUC__) && (__GNUC__*10000 + __GNUC_MINOR__*100 + __GNUC_PATCHLEVEL__ > 40900) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wunused-function" +#endif + // test with one template parameter #define TEST_T(TYPE,RESULT) BOOST_CHECK_INTEGRAL_CONSTANT((::boost::BOOST_TT_TRAIT_NAME::value), RESULT) // test with one template parameter plus return value @@ -125,4 +130,8 @@ void common() { } +#if defined(__GNUC__) && (__GNUC__*10000 + __GNUC_MINOR__*100 + __GNUC_PATCHLEVEL__ > 40900) +#pragma GCC diagnostic pop +#endif + #endif