[kaffe] CVS kaffe (robilad): small warning fix in jthreads

Kaffe CVS cvs-commits at kaffe.org
Sat Apr 22 13:06:28 PDT 2006


PatchSet 7262 
Date: 2006/04/22 19:41:49
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
small warning fix in jthreads

2006-04-22  Dalibor Topic  <robilad at kaffe.org>

* kaffe/kaffevm/systems/unix-jthreads/signal.c (restoreSyncSignalHandler)
(restoreAsyncSignalHandler): Split into two versions for systems with and
without sigaction. In the latter case, do nothing and mark the paraters
as unused.

Members: 
	ChangeLog:1.4767->1.4768 
	kaffe/kaffevm/systems/unix-jthreads/signal.c:1.32->1.33 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4767 kaffe/ChangeLog:1.4768
--- kaffe/ChangeLog:1.4767	Sat Apr 22 18:40:39 2006
+++ kaffe/ChangeLog	Sat Apr 22 19:41:49 2006
@@ -1,5 +1,12 @@
 2006-04-22  Dalibor Topic  <robilad at kaffe.org>
 
+	* kaffe/kaffevm/systems/unix-jthreads/signal.c (restoreSyncSignalHandler) 
+	(restoreAsyncSignalHandler): Split into two versions for systems with and
+	without sigaction. In the latter case, do nothing and mark the paraters
+	as unused.
+
+2006-04-22  Dalibor Topic  <robilad at kaffe.org>
+
 	* kaffe/kaffevm/systems/unix-pthreads/syscalls.c (jthreadedSendto),
 	kaffe/kaffevm/systems/unix-jthreads/syscalls.c 
 	(jthreadedGetHostByAddr, jthreadedBind, jthreadedSendto),
Index: kaffe/kaffe/kaffevm/systems/unix-jthreads/signal.c
diff -u kaffe/kaffe/kaffevm/systems/unix-jthreads/signal.c:1.32 kaffe/kaffe/kaffevm/systems/unix-jthreads/signal.c:1.33
--- kaffe/kaffe/kaffevm/systems/unix-jthreads/signal.c:1.32	Sat May  7 08:55:44 2005
+++ kaffe/kaffe/kaffevm/systems/unix-jthreads/signal.c	Sat Apr 22 19:41:54 2006
@@ -234,29 +234,39 @@
  * Restore an asynchronous signal handler.  
  * Only necesary on some platforms which don't provide SIGACTION
  */
+#if defined(HAVE_SIGACTION)
+void
+restoreAsyncSignalHandler(int sig UNUSED, void* handler UNUSED)
+{
+  /* Do nothing. */
+}
+#else /* !defined(HAVE_SIGACTION) */
 void
 restoreAsyncSignalHandler(int sig, void* handler)
 {
-#if !defined(HAVE_SIGACTION)
 	/* XXX need a configure-time test for this. */
 	registerAsyncSignalHandler(sig, handler);
-#endif
 }
-
+#endif /* defined(HAVE_SIGACTION) */
 
 /*
  * Restore a synchronous signal handler.  
  * Only necesary on some platforms.
  */
+#if defined(HAVE_SIGACTION)
+void
+restoreSyncSignalHandler(int sig UNUSED, void* handler UNUSED)
+{
+  /* Do nothing. */
+}
+#else /* !defined(HAVE_SIGACTION) */
 void
 restoreSyncSignalHandler(int sig, void* handler)
 {
-#if !defined(HAVE_SIGACTION)
 	/* XXX need a configure-time test for this. */
 	registerSyncSignalHandler(sig, handler);
-#endif
 }
-
+#endif
 
 /*
  * Register a handler for a terminal (i.e., process-killing) signal.




More information about the kaffe mailing list