mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
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:
parent
72a4a57a9e
commit
3ccd57dac4
1 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||||
}
|
}
|
||||||
|
|
||||||
#if _MSC_VER >=1400 && !defined(_WIN64)
|
#if _MSC_VER >=1400 && !defined(_WIN64)
|
||||||
|
#pragma warning(default: 4748)
|
||||||
#pragma optimize("", on)
|
#pragma optimize("", on)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue