From dbf31e2dfd00e20ab49af70f3533a348e8a6515e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Draszik?= Date: Mon, 13 Aug 2018 16:47:25 +0100 Subject: [PATCH 4/5] hotspot: Fix debug build after 8062808: Turn on the -Wreturn-type warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit |# HG changeset patch |# User goetz |# Date 1415873641 -3600 |# Thu Nov 13 11:14:01 2014 +0100 |# Node ID 1878c4c1d04e1f3c6f67a19d36c35863d6b5f906 |# Parent 533473c67de6ff767710594639033c8e83523fe5 8064786, PR3599: Fix debug build after 8062808: Turn on the -Wreturn-type warning Reviewed-by: stefank, tschatzl Signed-off-by: André Draszik Upstream-Status: Backport --- hotspot/src/share/vm/prims/jni.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hotspot/src/share/vm/prims/jni.cpp b/hotspot/src/share/vm/prims/jni.cpp index 6a6ab936..e2f2ad3b 100644 --- a/hotspot/src/share/vm/prims/jni.cpp +++ b/hotspot/src/share/vm/prims/jni.cpp @@ -708,6 +708,7 @@ JNI_ENTRY(jint, jni_Throw(JNIEnv *env, jthrowable obj)) THROW_OOP_(JNIHandles::resolve(obj), JNI_OK); ShouldNotReachHere(); + return 0; // Mute compiler. JNI_END #ifndef USDT2 @@ -734,6 +735,7 @@ JNI_ENTRY(jint, jni_ThrowNew(JNIEnv *env, jclass clazz, const char *message)) 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 -- 2.18.0