Boost logo

Boost-Commit :

From: daniel_james_at_[hidden]
Date: 2007-12-08 07:24:36


Author: danieljames
Date: 2007-12-08 07:24:36 EST (Sat, 08 Dec 2007)
New Revision: 41866
URL: http://svn.boost.org/trac/boost/changeset/41866

Log:
Only suppress warning for Visual C++ 8 and later. Refs #1509

Text files modified:
   trunk/boost/functional/detail/hash_float.hpp | 2 ++
   1 files changed, 2 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 07:24:36 EST (Sat, 08 Dec 2007)
@@ -16,9 +16,11 @@
 
 #if defined(BOOST_MSVC)
 #pragma warning(push)
+#if BOOST_MSVC >= 1400
 #pragma warning(disable:6294) // Ill-defined for-loop: initial condition does
                               // not satisfy test. Loop body not executed
 #endif
+#endif
 
 #include <boost/functional/detail/float_functions.hpp>
 #include <boost/integer/static_log2.hpp>


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