changeset 7420:bad5bf926f89

8064786: Fix debug build after 8062808: Turn on the -Wreturn-type warning Reviewed-by: stefank, tschatzl
author goetz
date Thu, 13 Nov 2014 11:14:01 +0100
parents 430043fc642a
children 55e38e5032af
files src/share/vm/prims/jni.cpp
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/prims/jni.cpp	Tue Nov 11 13:39:00 2014 -0500
+++ b/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