8211274: x86_32 build failures after JDK-8211029 (Have a common set of enabled warnings for all native libraries)
Reviewed-by: dholmes, tschatzl
--- a/src/hotspot/cpu/x86/jniFastGetField_x86_32.cpp Fri Sep 28 18:28:48 2018 +0200
+++ b/src/hotspot/cpu/x86/jniFastGetField_x86_32.cpp Fri Sep 28 18:28:49 2018 +0200
@@ -131,7 +131,8 @@
case T_BYTE: slow_case_addr = jni_GetByteField_addr(); break;
case T_CHAR: slow_case_addr = jni_GetCharField_addr(); break;
case T_SHORT: slow_case_addr = jni_GetShortField_addr(); break;
- case T_INT: slow_case_addr = jni_GetIntField_addr();
+ case T_INT: slow_case_addr = jni_GetIntField_addr(); break;
+ default: ShouldNotReachHere();
}
// tail call
__ jump (ExternalAddress(slow_case_addr));
--- a/src/hotspot/cpu/x86/stubGenerator_x86_32.cpp Fri Sep 28 18:28:48 2018 +0200
+++ b/src/hotspot/cpu/x86/stubGenerator_x86_32.cpp Fri Sep 28 18:28:49 2018 +0200
@@ -87,8 +87,8 @@
case T_INT: inc_counter_np(SharedRuntime::_jint_array_copy_ctr); return;
case T_LONG: inc_counter_np(SharedRuntime::_jlong_array_copy_ctr); return;
case T_OBJECT: inc_counter_np(SharedRuntime::_oop_array_copy_ctr); return;
+ default: ShouldNotReachHere();
}
- ShouldNotReachHere();
#endif //PRODUCT
}