Boost logo

Boost-Commit :

From: hartmut.kaiser_at_[hidden]
Date: 2008-04-26 21:08:04


Author: hkaiser
Date: 2008-04-26 21:08:04 EDT (Sat, 26 Apr 2008)
New Revision: 44795
URL: http://svn.boost.org/trac/boost/changeset/44795

Log:
Spirit: suppressed more VC level 4 warnings.
Text files modified:
   trunk/boost/spirit/home/karma/numeric/detail/numeric_utils.hpp | 2 +-
   trunk/boost/spirit/home/qi/numeric/detail/numeric_utils.hpp | 14 ++++++++++++++
   trunk/boost/spirit/home/qi/numeric/detail/real_impl.hpp | 11 +++++++++++
   3 files changed, 26 insertions(+), 1 deletions(-)

Modified: trunk/boost/spirit/home/karma/numeric/detail/numeric_utils.hpp
==============================================================================
--- trunk/boost/spirit/home/karma/numeric/detail/numeric_utils.hpp (original)
+++ trunk/boost/spirit/home/karma/numeric/detail/numeric_utils.hpp 2008-04-26 21:08:04 EDT (Sat, 26 Apr 2008)
@@ -529,7 +529,7 @@
         
 #if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
 # pragma warning(push)
-# pragma warning(disable: 4100) // 'x': unreferenced formal parameter
+# pragma warning(disable: 4100) // 'p': unreferenced formal parameter
 # pragma warning(disable: 4127) // conditional expression is constant
 #endif
 

Modified: trunk/boost/spirit/home/qi/numeric/detail/numeric_utils.hpp
==============================================================================
--- trunk/boost/spirit/home/qi/numeric/detail/numeric_utils.hpp (original)
+++ trunk/boost/spirit/home/qi/numeric/detail/numeric_utils.hpp 2008-04-26 21:08:04 EDT (Sat, 26 Apr 2008)
@@ -316,6 +316,10 @@
>
     struct extract_int
     {
+#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
+# pragma warning(push)
+# pragma warning(disable: 4127) // conditional expression is constant
+#endif
         template <typename Iterator, typename Attribute>
         static bool
         parse_main(
@@ -360,6 +364,9 @@
             }
             return false;
         }
+#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
+# pragma warning(pop)
+#endif
 
         template <typename Iterator>
         static bool
@@ -401,6 +408,10 @@
     template <typename T, unsigned Radix, typename Accumulator, bool Accumulate>
     struct extract_int<T, Radix, 1, -1, Accumulator, Accumulate>
     {
+#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
+# pragma warning(push)
+# pragma warning(disable: 4127) // conditional expression is constant
+#endif
         template <typename Iterator, typename Attribute>
         static bool
         parse_main(
@@ -460,6 +471,9 @@
             first = it;
             return true;
         }
+#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
+# pragma warning(pop)
+#endif
 
         template <typename Iterator>
         static bool

Modified: trunk/boost/spirit/home/qi/numeric/detail/real_impl.hpp
==============================================================================
--- trunk/boost/spirit/home/qi/numeric/detail/real_impl.hpp (original)
+++ trunk/boost/spirit/home/qi/numeric/detail/real_impl.hpp 2008-04-26 21:08:04 EDT (Sat, 26 Apr 2008)
@@ -73,6 +73,12 @@
         }
     }
 
+#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
+# pragma warning(push)
+# pragma warning(disable: 4100) // 'p': unreferenced formal parameter
+# pragma warning(disable: 4127) // conditional expression is constant
+#endif
+
     template <typename T, typename RealPolicies>
     struct real_impl
     {
@@ -209,6 +215,11 @@
             return true;
         }
     };
+
+#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