|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r57530 - trunk/boost/spirit/home/karma/detail
From: hartmut.kaiser_at_[hidden]
Date: 2009-11-09 21:01:13
Author: hkaiser
Date: 2009-11-09 21:01:13 EST (Mon, 09 Nov 2009)
New Revision: 57530
URL: http://svn.boost.org/trac/boost/changeset/57530
Log:
Spirit: fixing one more warning
Text files modified:
trunk/boost/spirit/home/karma/detail/fail_function.hpp | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
Modified: trunk/boost/spirit/home/karma/detail/fail_function.hpp
==============================================================================
--- trunk/boost/spirit/home/karma/detail/fail_function.hpp (original)
+++ trunk/boost/spirit/home/karma/detail/fail_function.hpp 2009-11-09 21:01:13 EST (Mon, 09 Nov 2009)
@@ -26,13 +26,12 @@
: sink(sink_), ctx(context_), delim(delim_)
{}
-#if defined(BOOST_MSVC)
-#pragma warning(push)
-#pragma warning(disable: 4100) // warning C4100: 'component' : unreferenced formal parameter
-#endif
template <typename Component, typename Attribute>
bool operator()(Component const& component, Attribute const& attr) const
{
+#if BOOST_WORKAROUND(BOOST_MSVC, BOOST_TESTED_AT(1600))
+ component; // suppresses warning: C4100: 'component' : unreferenced formal parameter
+#endif
// return true if any of the generators fail
return !component.generate(sink, ctx, delim, attr);
}
@@ -40,12 +39,12 @@
template <typename Component>
bool operator()(Component const& component) const
{
+#if BOOST_WORKAROUND(BOOST_MSVC, BOOST_TESTED_AT(1600))
+ component; // suppresses warning: C4100: 'component' : unreferenced formal parameter
+#endif
// return true if any of the generators fail
return !component.generate(sink, ctx, delim, unused);
}
-#if defined(BOOST_MSVC)
-#pragma warning(pop)
-#endif
OutputIterator& sink;
Context& ctx;
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