Boost logo

Boost-Commit :

From: hartmut.kaiser_at_[hidden]
Date: 2008-04-26 20:49:41


Author: hkaiser
Date: 2008-04-26 20:49:41 EDT (Sat, 26 Apr 2008)
New Revision: 44792
URL: http://svn.boost.org/trac/boost/changeset/44792

Log:
Spirit: disabled some warnings for VC /W4
Text files modified:
   trunk/boost/spirit/home/support/detail/hold_any.hpp | 15 ++++++++++++++-
   1 files changed, 14 insertions(+), 1 deletions(-)

Modified: trunk/boost/spirit/home/support/detail/hold_any.hpp
==============================================================================
--- trunk/boost/spirit/home/support/detail/hold_any.hpp (original)
+++ trunk/boost/spirit/home/support/detail/hold_any.hpp 2008-04-26 20:49:41 EDT (Sat, 26 Apr 2008)
@@ -27,6 +27,13 @@
 #include <iosfwd>
 
 ///////////////////////////////////////////////////////////////////////////////
+#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
+#pragma warning(push)
+#pragma warning(disable: 4100) // 'x': unreferenced formal parameter
+#pragma warning(disable: 4127) // conditional expression is constant
+#endif
+
+///////////////////////////////////////////////////////////////////////////////
 namespace boost { namespace spirit
 {
     struct bad_any_cast
@@ -407,6 +414,12 @@
         return any_cast<nonref const&>(const_cast<hold_any &>(operand));
     }
 
-}}
+///////////////////////////////////////////////////////////////////////////////
+}} // namespace boost::spirit
+
+///////////////////////////////////////////////////////////////////////////////
+#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
+#pragma warning(pop)
+#endif
 
 #endif


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