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
--- 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