diff src/process-unix.c @ 2286:04bc9d2f42c7

[xemacs-hg @ 2004-09-20 19:18:55 by james] Mark all unused parameters as unused. Also eliminate some unneeded local variables.
author james
date Mon, 20 Sep 2004 19:20:08 +0000
parents 61855263cb07
children ecf1ebac70d8
line wrap: on
line diff
--- a/src/process-unix.c	Mon Sep 20 19:11:29 2004 +0000
+++ b/src/process-unix.c	Mon Sep 20 19:20:08 2004 +0000
@@ -96,7 +96,7 @@
 /**********************************************************************/
 
 static SIGTYPE
-close_safely_handler (int signo)
+close_safely_handler (int SIG_ARG_MAYBE_UNUSED (signo))
 {
   EMACS_REESTABLISH_SIGNAL (signo, close_safely_handler);
   SIGRETURN;
@@ -127,7 +127,8 @@
    to get rid of irrelevant descriptors.  */
 
 static int
-close_process_descs_mapfun (const void *key, void *contents, void *arg)
+close_process_descs_mapfun (const void *UNUSED (key), void *contents,
+			    void *UNUSED (arg))
 {
   Lisp_Object proc = VOID_TO_LISP (contents);
   USID vaffan, culo;
@@ -516,7 +517,13 @@
 #endif /* !USE_GETADDRINFO */
 
 static void
-set_socket_nonblocking_maybe (int fd, int port, const char *proto)
+set_socket_nonblocking_maybe (int fd,
+#ifdef PROCESS_IO_BLOCKING
+			      int port, const char *proto
+#else
+			      int UNUSED (port), const char *UNUSED (proto)
+#endif
+			      )
 {
 #ifdef PROCESS_IO_BLOCKING
   Lisp_Object tail;
@@ -696,7 +703,7 @@
  behavior when we use sigaction(), which we do use.) */
 
 static SIGTYPE
-sigchld_handler (int signo)
+sigchld_handler (int SIG_ARG_MAYBE_UNUSED (signo))
 {
 #ifdef OBNOXIOUS_SYSV_SIGCLD_BEHAVIOR
   int old_errno = errno;
@@ -836,8 +843,8 @@
  */
 
 static void
-unix_init_process_io_handles (Lisp_Process *p, void *in, void *out, void *err,
-			      int flags)
+unix_init_process_io_handles (Lisp_Process *p, void *in, void *UNUSED (out),
+			      void *err, int UNUSED (flags))
 {
   UNIX_DATA(p)->infd = (int) in;
   UNIX_DATA(p)->errfd = (int) err;