changeset 50551:d0a350777bd1

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>
author kbarrett
date Fri, 04 May 2018 17:52:10 -0400
parents 09cbe16c0662
children 947f79c91b35
files src/hotspot/share/runtime/frame.cpp src/hotspot/share/utilities/vmError.cpp
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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() {