[cp-patches] FYI: fixed compiler warning in native/jni/native-lib/cpproc.c

Christian Thalinger twisti at complang.tuwien.ac.at
Wed Apr 11 21:33:02 UTC 2007


Hi!

MIPSpro warned about that.  Commited.

- twisti

---

2007-04-11  Christian Thalinger  <twisti at complang.tuwien.ac.at>

	* native/jni/native-lib/cpproc.c (cpproc_forkAndExec): Fixed
	warning on some compilers, e.g. MIPSpro.


Index: native/jni/native-lib/cpproc.c
===================================================================
RCS file: /cvsroot/classpath/classpath/native/jni/native-lib/cpproc.c,v
retrieving revision 1.3
diff -u -3 -p -r1.3 cpproc.c
--- native/jni/native-lib/cpproc.c      5 Sep 2006 21:33:25 -0000       1.3
+++ native/jni/native-lib/cpproc.c      11 Apr 2007 21:31:02 -0000
@@ -114,6 +114,10 @@ int cpproc_forkAndExec (char * const *co
       *out_pid = pid;
       return 0;
     }
+
+  /* keep compiler happy */
+
+  return 0;
 }
 
 int cpproc_waitpid (pid_t pid, int *status, pid_t *outpid, int options)




More information about the Classpath-patches mailing list