8202319: Fix compilation warnings in Solaris debug builds for DevStudio 12.6

Disable warnings.

Reviewed-by: dholmes, kbarrett
This commit is contained in:
Gary Adams 2018-05-04 17:52:10 -04:00 committed by Kim Barrett
parent 69c55eb2de
commit dd34d29a46
2 changed files with 6 additions and 0 deletions
src/hotspot/share
runtime
utilities

@ -1103,6 +1103,9 @@ void frame::oops_entry_do(OopClosure* f, const RegisterMap* map) {
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;

@ -1620,6 +1620,9 @@ bool VMError::check_timeout() {
}
#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() {