Try to suppress some more Visual C++ warnings.

[SVN r57976]
This commit is contained in:
Daniel James
2009-11-27 19:43:26 +00:00
parent 079f8025b3
commit 3882189584
3 changed files with 8 additions and 1 deletions

View File

@@ -199,7 +199,7 @@ namespace boost
#if defined(BOOST_MSVC)
#pragma warning(push)
#if BOOST_MSVC == 1400
#if BOOST_MSVC <= 1400
#pragma warning(disable:4267) // 'argument' : conversion from 'size_t' to 'unsigned int',
// possible loss of data
// A misguided attempt to detect 64-bit incompatability.

View File

@@ -25,6 +25,9 @@ int main() {}
#pragma warning(disable:4305) // truncation from 'double' to 'const std::complex<float>::_Ty'
#pragma warning(disable:4309) // truncation of constant value
#pragma warning(disable:4512) // assignment operator could not be generated
#if BOOST_MSVC < 1400
#pragma warning(disable:4267) // conversion from 'size_t' to 'unsigned int', possible loss of data
#endif
#endif
#include <complex>

View File

@@ -23,6 +23,10 @@
#if defined(BOOST_MSVC)
#pragma warning(push)
#pragma warning(disable:4127) // conditional expression is constant
#pragma warning(disable:4723) // conditional expression is constant
#if BOOST_MSVC < 1400
#pragma warning(disable:4267) // conversion from 'size_t' to 'unsigned int', possible loss of data
#endif
#endif
char const* float_type(float*) { return "float"; }