From 0568a114a8cc5247c2c042f01b0f41d69552549e Mon Sep 17 00:00:00 2001 From: Daniel Walker Date: Sun, 23 Sep 2012 01:44:39 +0000 Subject: [PATCH] supress warnings in result_of_iterate.hpp on gcc 4 and up. [SVN r80655] --- include/boost/utility/detail/result_of_iterate.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/boost/utility/detail/result_of_iterate.hpp b/include/boost/utility/detail/result_of_iterate.hpp index f619ee7..7dccf17 100644 --- a/include/boost/utility/detail/result_of_iterate.hpp +++ b/include/boost/utility/detail/result_of_iterate.hpp @@ -15,6 +15,12 @@ # error Boost result_of - do not include this file! #endif +// This header generate spurious warnings on gcc, which we supress by +// treating it as a system header. +#if defined(__GNUC__) && (__GNUC__ >= 4) +#pragma GCC system_header +#endif + // CWPro8 requires an argument in a function type specialization #if BOOST_WORKAROUND(__MWERKS__, BOOST_TESTED_AT(0x3002)) && BOOST_PP_ITERATION() == 0 # define BOOST_RESULT_OF_ARGS void