提交 a128f76f 编写于 作者: I iveresov

7007229: Fix warnings with VS2010 in compressedStream.cpp

Summary: 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
上级 1a39b86c
...@@ -197,6 +197,7 @@ void CompressedWriteStream::write_int_mb(jint value) { ...@@ -197,6 +197,7 @@ void CompressedWriteStream::write_int_mb(jint value) {
// compiler stack overflow is fixed. // compiler stack overflow is fixed.
#if _MSC_VER >=1400 && !defined(_WIN64) #if _MSC_VER >=1400 && !defined(_WIN64)
#pragma optimize("", off) #pragma optimize("", off)
#pragma warning(disable: 4748)
#endif #endif
// generator for an "interesting" set of critical values // generator for an "interesting" set of critical values
...@@ -276,6 +277,7 @@ void test_compressed_stream(int trace) { ...@@ -276,6 +277,7 @@ void test_compressed_stream(int trace) {
} }
#if _MSC_VER >=1400 && !defined(_WIN64) #if _MSC_VER >=1400 && !defined(_WIN64)
#pragma warning(default: 4748)
#pragma optimize("", on) #pragma optimize("", on)
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册