Blame SOURCES/jdk8064786-pr3599-fix_debug_build_after_8062808_Turn_on_the_wreturn_type_warning.patch

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