# HG changeset patch # User iveresov # Date 1292474616 28800 # Node ID 5fa559508216e11adfdbce9469990fa4e912c20d # Parent 0d43957458609cc18550c49e7367ca26c884c875 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 diff -r 0d4395745860 -r 5fa559508216 src/share/vm/code/compressedStream.cpp --- a/src/share/vm/code/compressedStream.cpp Fri Dec 10 18:05:39 2010 -0800 +++ b/src/share/vm/code/compressedStream.cpp Wed Dec 15 20:43:36 2010 -0800 @@ -197,6 +197,7 @@ // 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 @@ } #if _MSC_VER >=1400 && !defined(_WIN64) +#pragma warning(default: 4748) #pragma optimize("", on) #endif