mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8006498: #if <symbol> is wrong in the code
ASSERT and other symbols used incorrectly with #if are supposed to be defined or not. Reviewed-by: dholmes, mikael
This commit is contained in:
parent
a6be16446d
commit
e1f180f82e
8 changed files with 9 additions and 25 deletions
|
@ -195,7 +195,7 @@ void CompressedWriteStream::write_int_mb(jint value) {
|
|||
// for this block (a matching directive turns it back on later).
|
||||
// These directives can be removed once the MS VS.NET 2005
|
||||
// compiler stack overflow is fixed.
|
||||
#if _MSC_VER >=1400 && !defined(_WIN64)
|
||||
#if defined(_MSC_VER) && _MSC_VER >=1400 && !defined(_WIN64)
|
||||
#pragma optimize("", off)
|
||||
#pragma warning(disable: 4748)
|
||||
#endif
|
||||
|
@ -276,7 +276,7 @@ void test_compressed_stream(int trace) {
|
|||
guarantee(fails == 0, "test failures");
|
||||
}
|
||||
|
||||
#if _MSC_VER >=1400 && !defined(_WIN64)
|
||||
#if defined(_MSC_VER) &&_MSC_VER >=1400 && !defined(_WIN64)
|
||||
#pragma warning(default: 4748)
|
||||
#pragma optimize("", on)
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue