|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r80655 - trunk/boost/utility/detail
From: daniel.j.walker_at_[hidden]
Date: 2012-09-22 21:44:39
Author: djwalker
Date: 2012-09-22 21:44:39 EDT (Sat, 22 Sep 2012)
New Revision: 80655
URL: http://svn.boost.org/trac/boost/changeset/80655
Log:
supress warnings in result_of_iterate.hpp on gcc 4 and up.
Text files modified:
trunk/boost/utility/detail/result_of_iterate.hpp | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
Modified: trunk/boost/utility/detail/result_of_iterate.hpp
==============================================================================
--- trunk/boost/utility/detail/result_of_iterate.hpp (original)
+++ trunk/boost/utility/detail/result_of_iterate.hpp 2012-09-22 21:44:39 EDT (Sat, 22 Sep 2012)
@@ -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
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk