diff src/search.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 ba4677f54a05
line wrap: on
line diff
--- a/src/search.c	Mon Sep 20 19:11:29 2004 +0000
+++ b/src/search.c	Mon Sep 20 19:20:08 2004 +0000
@@ -158,7 +158,7 @@
 
 static int
 compile_pattern_1 (struct regexp_cache *cp, Lisp_Object pattern,
-		   struct re_registers *regp, Lisp_Object translate,
+		   struct re_registers *UNUSED (regp), Lisp_Object translate,
 		   int posix, Error_Behavior errb)
 {
   const char *val;
@@ -197,8 +197,9 @@
 
 struct re_pattern_buffer *
 compile_pattern (Lisp_Object pattern, struct re_registers *regp,
-		 Lisp_Object translate, Lisp_Object searchobj,
-		 struct buffer *searchbuf, int posix, Error_Behavior errb)
+		 Lisp_Object translate, Lisp_Object UNUSED (searchobj),
+		 struct buffer *UNUSED (searchbuf), int posix,
+		 Error_Behavior errb)
 {
   struct regexp_cache *cp, **cpp;
 
@@ -404,7 +405,7 @@
 
 static Lisp_Object
 string_match_1 (Lisp_Object regexp, Lisp_Object string, Lisp_Object start,
-		struct buffer *buf, int posix)
+		struct buffer *buf, int UNUSED (posix))
 {
   Bytecount val;
   Charcount s;
@@ -3085,7 +3086,7 @@
 #### Not yet implemented.  Currently does nothing.
 #### Do not use this yet.  Its calling interface is likely to change.
 */
-       (regexp))
+       (UNUSED (regexp)))
 {
   return Qnil;
 }