Boost logo

Boost-Commit :

From: daniel_james_at_[hidden]
Date: 2007-12-08 06:04:40


Author: danieljames
Date: 2007-12-08 06:04:40 EST (Sat, 08 Dec 2007)
New Revision: 41864
URL: http://svn.boost.org/trac/boost/changeset/41864

Log:
Try to suppress a Visual C++ warning. Refs #1509

Text files modified:
   trunk/boost/functional/detail/hash_float.hpp | 10 ++++++++++
   1 files changed, 10 insertions(+), 0 deletions(-)

Modified: trunk/boost/functional/detail/hash_float.hpp
==============================================================================
--- trunk/boost/functional/detail/hash_float.hpp (original)
+++ trunk/boost/functional/detail/hash_float.hpp 2007-12-08 06:04:40 EST (Sat, 08 Dec 2007)
@@ -14,6 +14,12 @@
 # pragma once
 #endif
 
+#if defined(BOOST_MSVC)
+#pragma warning(push)
+#pragma warning(disable:6294) // Ill-defined for-loop: initial condition does
+ // not satisfy test. Loop body not executed
+#endif
+
 #include <boost/functional/detail/float_functions.hpp>
 #include <boost/integer/static_log2.hpp>
 #include <boost/cstdint.hpp>
@@ -181,4 +187,8 @@
     }
 }
 
+#if defined(BOOST_MSVC)
+#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