8064786: Fix debug build after 8062808: Turn on the -Wreturn-type warning
authorgoetz
Thu, 13 Nov 2014 11:14:01 +0100
changeset 27679 06b3a53d7781
parent 27678 d1872bc7dd8d
child 27680 8ecc0871c18e
8064786: Fix debug build after 8062808: Turn on the -Wreturn-type warning Reviewed-by: stefank, tschatzl
hotspot/src/share/vm/prims/jni.cpp
--- a/hotspot/src/share/vm/prims/jni.cpp	Tue Nov 11 13:39:00 2014 -0500
+++ b/hotspot/src/share/vm/prims/jni.cpp	Thu Nov 13 11:14:01 2014 +0100
@@ -603,6 +603,7 @@
 
   THROW_OOP_(JNIHandles::resolve(obj), JNI_OK);
   ShouldNotReachHere();
+  return 0;  // Mute compiler.
 JNI_END
 
 
@@ -623,6 +624,7 @@
   Handle protection_domain (THREAD, k->protection_domain());
   THROW_MSG_LOADER_(name, (char *)message, class_loader, protection_domain, JNI_OK);
   ShouldNotReachHere();
+  return 0;  // Mute compiler.
 JNI_END