7007229: Fix warnings with VS2010 in compressedStream.cpp
authoriveresov
Wed, 15 Dec 2010 20:43:36 -0800
changeset 7425 7361a8d313c3
parent 7423 a7b9a92562fa
child 7442 a14c19650063
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
hotspot/src/share/vm/code/compressedStream.cpp
--- a/hotspot/src/share/vm/code/compressedStream.cpp	Fri Dec 10 18:05:39 2010 -0800
+++ b/hotspot/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