From 4a21971b5d70571092e62753eb9ceb2413b0d804 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Sat, 8 Dec 2007 11:04:40 +0000 Subject: [PATCH] Try to suppress a Visual C++ warning. Refs #1509 [SVN r41864] --- include/boost/functional/detail/hash_float.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/boost/functional/detail/hash_float.hpp b/include/boost/functional/detail/hash_float.hpp index d005e7d..243012c 100644 --- a/include/boost/functional/detail/hash_float.hpp +++ b/include/boost/functional/detail/hash_float.hpp @@ -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 #include #include @@ -181,4 +187,8 @@ namespace boost } } +#if defined(BOOST_MSVC) +#pragma warning(pop) +#endif + #endif