diff modules/postgresql/postgresql.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 9fc738581a9d
children 6fa9919a9a0b
line wrap: on
line diff
--- a/modules/postgresql/postgresql.c	Mon Sep 20 19:11:29 2004 +0000
+++ b/modules/postgresql/postgresql.c	Mon Sep 20 19:20:08 2004 +0000
@@ -187,16 +187,18 @@
 
 static Lisp_Object
 #ifdef RUNNING_XEMACS_21_1
-mark_pgconn (Lisp_Object obj, void (*markobj) (Lisp_Object))
+mark_pgconn (Lisp_Object UNUSED (obj),
+	     void (*UNUSED_ARG (markobj)) (Lisp_Object) ATTRIBUTE_UNUSED)
 #else
-mark_pgconn (Lisp_Object obj)
+mark_pgconn (Lisp_Object UNUSED (obj))
 #endif
 {
   return Qnil;
 }
 
 static void
-print_pgconn (Lisp_Object obj, Lisp_Object printcharfun, int escapeflag)
+print_pgconn (Lisp_Object obj, Lisp_Object printcharfun,
+	      int UNUSED (escapeflag))
 {
   char buf[256];
   PGconn *P;
@@ -295,9 +297,10 @@
 
 static Lisp_Object
 #ifdef RUNNING_XEMACS_21_1
-mark_pgresult (Lisp_Object obj, void (*markobj) (Lisp_Object))
+mark_pgresult (Lisp_Object UNUSED (obj),
+	       void (*UNUSED_ARG (markobj)) (Lisp_Object) ATTRIBUTE_UNUSED)
 #else
-mark_pgresult (Lisp_Object obj)
+mark_pgresult (Lisp_Object UNUSED (obj))
 #endif
 {
   return Qnil;
@@ -307,7 +310,8 @@
 #define RESULT_CMD_TUPLES_FMT "#<PGresult %s[%s] - %s>"
 #define RESULT_DEFAULT_FMT "#<PGresult %s - %s>"
 static void
-print_pgresult (Lisp_Object obj, Lisp_Object printcharfun, int escapeflag)
+print_pgresult (Lisp_Object obj, Lisp_Object printcharfun,
+		int UNUSED (escapeflag))
 {
   char buf[1024];
   PGresult *res;
@@ -403,7 +407,7 @@
 
 /* notices */
 static void
-xemacs_notice_processor (void *arg, const char *msg)
+xemacs_notice_processor (void *UNUSED (arg), const char *msg)
 {
   warn_when_safe (Qpostgresql, Qnotice, "%s", msg);
 }