LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File openjdk-7-src-b147-no-return-in-nonvoid.patch of Package java-1_7_0-openjdk (Project openSUSE:Factory:ARM)

--- java-1_7_0-openjdk/openjdk/jdk/src/solaris/native/sun/java2d/x11/X11SurfaceData.c
+++ java-1_7_0-openjdk/openjdk/jdk/src/solaris/native/sun/java2d/x11/X11SurfaceData.c
@@ -142,6 +142,7 @@ jboolean XShared_initIDs(JNIEnv *env, jb
 #endif /* MITSHM */
 
 #endif /* !HEADLESS */
+return JNI_FALSE;
 }
 
 
@@ -491,6 +492,7 @@ jboolean XShared_initSurface(JNIEnv *env
 
     return JNI_TRUE;
 #endif /* !HEADLESS */
+return JNI_FALSE;
 }
 
 
--- icedtea-2.3.2/openjdk/hotspot/src/os_cpu/linux_x86/vm/os_linux_x86.cpp.old
+++ icedtea-2.3.2/openjdk/hotspot/src/os_cpu/linux_x86/vm/os_linux_x86.cpp
@@ -528,6 +528,7 @@
   err.report_and_die();
 
   ShouldNotReachHere();
+  return 0; // to make gcc happy
 }
 
 void os::Linux::init_thread_fpu_state(void) {
--- icedtea-2.3.2/openjdk/hotspot/src/share/vm/utilities/debug.hpp	2012-08-30 21:29:26.000000000 +0200
+++ icedtea-2.3.2/openjdk/hotspot/src/share/vm/utilities/debug.hpp	2012-09-06 00:27:08.074437225 +0200
@@ -191,14 +191,14 @@
 
 // error reporting helper functions
 void report_vm_error(const char* file, int line, const char* error_msg,
-                     const char* detail_msg = NULL);
-void report_fatal(const char* file, int line, const char* message);
+                     const char* detail_msg = NULL) __attribute__((noreturn));
+void report_fatal(const char* file, int line, const char* message) __attribute__((noreturn));
 void report_vm_out_of_memory(const char* file, int line, size_t size,
-                             const char* message);
-void report_should_not_call(const char* file, int line);
-void report_should_not_reach_here(const char* file, int line);
-void report_unimplemented(const char* file, int line);
-void report_untested(const char* file, int line, const char* message);
+                             const char* message) __attribute__((noreturn));
+void report_should_not_call(const char* file, int line) __attribute__((noreturn));
+void report_should_not_reach_here(const char* file, int line) __attribute__((noreturn));
+void report_unimplemented(const char* file, int line) __attribute__((noreturn));
+void report_untested(const char* file, int line, const char* message) __attribute__((noreturn));
 
 void warning(const char* format, ...);