# HG changeset patch # User kbarrett # Date 1525470730 14400 # Node ID d0a350777bd177b276e4bca2816c9456981f8a62 # Parent 09cbe16c06620f277794688b0e58f25232f0edb7 8202319: Fix compilation warnings in Solaris debug builds for DevStudio 12.6 Summary: Disable warnings. Reviewed-by: dholmes, kbarrett Contributed-by: Gary Adams diff -r 09cbe16c0662 -r d0a350777bd1 src/hotspot/share/runtime/frame.cpp --- 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; diff -r 09cbe16c0662 -r d0a350777bd1 src/hotspot/share/utilities/vmError.cpp --- 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() {