8202319: Fix compilation warnings in Solaris debug builds for DevStudio 12.6
Summary: Disable warnings.
Reviewed-by: dholmes, kbarrett
Contributed-by: Gary Adams <gary.adams@oracle.com>
--- a/src/hotspot/share/runtime/frame.cpp Fri May 04 09:46:08 2018 -0700
+++ b/src/hotspot/share/runtime/frame.cpp Fri May 04 17:52:10 2018 -0400
@@ -1103,6 +1103,9 @@
void frame::oops_do_internal(OopClosure* f, CodeBlobClosure* cf, RegisterMap* map, bool use_interpreter_oop_map_cache) {
#ifndef PRODUCT
+#if defined(__SUNPRO_CC) && __SUNPRO_CC >= 0x5140
+#pragma error_messages(off, SEC_NULL_PTR_DEREF)
+#endif
// simulate GC crash here to dump java thread in error report
if (CrashGCForDumpingJavaThread) {
char *t = NULL;
--- a/src/hotspot/share/utilities/vmError.cpp Fri May 04 09:46:08 2018 -0700
+++ b/src/hotspot/share/utilities/vmError.cpp Fri May 04 17:52:10 2018 -0400
@@ -1620,6 +1620,9 @@
}
#ifndef PRODUCT
+#if defined(__SUNPRO_CC) && __SUNPRO_CC >= 0x5140
+#pragma error_messages(off, SEC_NULL_PTR_DEREF)
+#endif
typedef void (*voidfun_t)();
// Crash with an authentic sigfpe
static void crash_with_sigfpe() {