File openjdk-ecj-6-src-b20-no-return-in-nonvoid-function.patch of Package java-1_6_0-openjdk.import5329

Index: icedtea6-1.9.7/openjdk-ecj/jdk/src/solaris/bin/jexec.c
===================================================================
--- icedtea6-1.9.7.orig/openjdk-ecj/jdk/src/solaris/bin/jexec.c
+++ icedtea6-1.9.7/openjdk-ecj/jdk/src/solaris/bin/jexec.c
@@ -221,6 +221,9 @@ int main(int argc, const char * argv[])
      * implies an error in the exec. */
     free(nargv);
     errorExit(errno, BAD_EXEC_MSG);
+
+    /* Just supress compiler warning */
+    return 0;
 }
 
 
Index: icedtea6-1.9.7/openjdk-ecj/jdk/src/solaris/native/sun/java2d/x11/X11SurfaceData.c
===================================================================
--- icedtea6-1.9.7.orig/openjdk-ecj/jdk/src/solaris/native/sun/java2d/x11/X11SurfaceData.c
+++ icedtea6-1.9.7/openjdk-ecj/jdk/src/solaris/native/sun/java2d/x11/X11SurfaceData.c
@@ -138,10 +138,12 @@ jboolean XShared_initIDs(JNIEnv *env, jb
         }
     }
 
-    return JNI_TRUE;
 #endif /* MITSHM */
 
 #endif /* !HEADLESS */
+    
+    /* Supress compiler warning */
+    return JNI_TRUE;
 }
 
 
@@ -463,8 +465,10 @@ jboolean XShared_initSurface(JNIEnv *env
         return JNI_FALSE;
     }
 
-    return JNI_TRUE;
 #endif /* !HEADLESS */
+
+    /* Suppress compiler warning */
+    return JNI_TRUE;
 }
 
 
Index: icedtea6-1.9.7/openjdk-ecj/hotspot/src/os_cpu/linux_x86/vm/os_linux_x86.cpp
===================================================================
--- icedtea6-1.9.7.orig/openjdk-ecj/hotspot/src/os_cpu/linux_x86/vm/os_linux_x86.cpp
+++ icedtea6-1.9.7/openjdk-ecj/hotspot/src/os_cpu/linux_x86/vm/os_linux_x86.cpp
@@ -494,6 +494,9 @@ JVM_handle_linux_signal(int sig,
   err.report_and_die();
 
   ShouldNotReachHere();
+
+  /*Supress compiler warnings*/
+  return -1;
 }
 
 void os::Linux::init_thread_fpu_state(void) {
Index: icedtea6-1.9.7/openjdk-ecj/hotspot/src/cpu/x86/vm/x86_32.ad
===================================================================
--- icedtea6-1.9.7.orig/openjdk-ecj/hotspot/src/cpu/x86/vm/x86_32.ad
+++ icedtea6-1.9.7/openjdk-ecj/hotspot/src/cpu/x86/vm/x86_32.ad
@@ -1133,6 +1133,7 @@ uint MachSpillCopyNode::implementation(
 
 
   Unimplemented();
+  return -1;  //avoid compiler warning
 }
 
 #ifndef PRODUCT