7007229: Fix warnings with VS2010 in compressedStream.cpp

An interference between a fix for 6993125 and disabled optimization in compressedStream.cpp produces a warning with VS2010. Disable the warning for the code fragment for which the optimizations are disabled.

Reviewed-by: kvn
This commit is contained in:
Igor Veresov 2010-12-15 20:43:36 -08:00
parent 72a4a57a9e
commit 3ccd57dac4

View file

@ -197,6 +197,7 @@ void CompressedWriteStream::write_int_mb(jint value) {
// compiler stack overflow is fixed.
#if _MSC_VER >=1400 && !defined(_WIN64)
#pragma optimize("", off)
#pragma warning(disable: 4748)
#endif
// generator for an "interesting" set of critical values
@ -276,6 +277,7 @@ void test_compressed_stream(int trace) {
}
#if _MSC_VER >=1400 && !defined(_WIN64)
#pragma warning(default: 4748)
#pragma optimize("", on)
#endif