From a0ae848ad2ea4a2a46249df4ed50ea76f05dde4f Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Thu, 13 Mar 2014 17:56:03 +0000 Subject: [PATCH] GCC warning suppression. --- test/has_binary_operators.hpp | 10 ++++++++++ test/has_prefix_operators.hpp | 9 +++++++++ 2 files changed, 19 insertions(+) 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