7007229: Fix warnings with VS2010 in compressedStream.cpp

Wed, 15 Dec 2010 20:43:36 -0800

author
iveresov
date
Wed, 15 Dec 2010 20:43:36 -0800
changeset 2342
5fa559508216
parent 2340
0d4395745860
child 2359
f9c511aae070

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

src/share/vm/code/compressedStream.cpp file | annotate | diff | comparison | revisions
     1.1 --- a/src/share/vm/code/compressedStream.cpp	Fri Dec 10 18:05:39 2010 -0800
     1.2 +++ b/src/share/vm/code/compressedStream.cpp	Wed Dec 15 20:43:36 2010 -0800
     1.3 @@ -197,6 +197,7 @@
     1.4  // compiler stack overflow is fixed.
     1.5  #if _MSC_VER >=1400 && !defined(_WIN64)
     1.6  #pragma optimize("", off)
     1.7 +#pragma warning(disable: 4748)
     1.8  #endif
     1.9  
    1.10  // generator for an "interesting" set of critical values
    1.11 @@ -276,6 +277,7 @@
    1.12  }
    1.13  
    1.14  #if _MSC_VER >=1400 && !defined(_WIN64)
    1.15 +#pragma warning(default: 4748)
    1.16  #pragma optimize("", on)
    1.17  #endif
    1.18  

mercurial