4067666
# HG changeset patch
4067666
# User goetz
4067666
# Date 1415873641 -3600
4067666
#      Thu Nov 13 11:14:01 2014 +0100
4067666
# Node ID 1878c4c1d04e1f3c6f67a19d36c35863d6b5f906
4067666
# Parent  533473c67de6ff767710594639033c8e83523fe5
4067666
8064786, PR3599: Fix debug build after 8062808: Turn on the -Wreturn-type warning
4067666
Reviewed-by: stefank, tschatzl
4067666
4067666
diff --git openjdk.orig/hotspot/src/share/vm/prims/jni.cpp openjdk/hotspot/src/share/vm/prims/jni.cpp
4067666
--- openjdk.orig/hotspot/src/share/vm/prims/jni.cpp
4067666
+++ openjdk/hotspot/src/share/vm/prims/jni.cpp
4067666
@@ -708,6 +708,7 @@
4067666
 
4067666
   THROW_OOP_(JNIHandles::resolve(obj), JNI_OK);
4067666
   ShouldNotReachHere();
4067666
+  return 0;  // Mute compiler.
4067666
 JNI_END
4067666
 
4067666
 #ifndef USDT2
4067666
@@ -734,6 +735,7 @@
4067666
   Handle protection_domain (THREAD, k->protection_domain());
4067666
   THROW_MSG_LOADER_(name, (char *)message, class_loader, protection_domain, JNI_OK);
4067666
   ShouldNotReachHere();
4067666
+  return 0;  // Mute compiler.
4067666
 JNI_END
4067666
 
4067666