Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: unused param warnings in zsh/pcre



Index: Src/Modules/pcre.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Modules/pcre.c,v
retrieving revision 1.8
diff -u -r1.8 pcre.c
--- Src/Modules/pcre.c	16 Mar 2004 21:44:41 -0000	1.8
+++ Src/Modules/pcre.c	22 Jun 2004 23:44:07 -0000
@@ -42,7 +42,7 @@
 
 /**/
 static int
-bin_pcre_compile(char *nam, char **args, Options ops, int func)
+bin_pcre_compile(char *nam, char **args, Options ops, UNUSED(int func))
 {
     int pcre_opts = 0, pcre_errptr;
     const char *pcre_error;
@@ -70,7 +70,7 @@
 
 /**/
 static int
-bin_pcre_study(char *nam, char **args, Options ops, int func)
+bin_pcre_study(char *nam, UNUSED(char **args), UNUSED(Options ops), UNUSED(int func))
 {
     const char *pcre_error;
 
@@ -121,7 +121,7 @@
 
 /**/
 static int
-bin_pcre_match(char *nam, char **args, Options ops, int func)
+bin_pcre_match(char *nam, char **args, Options ops, UNUSED(int func))
 {
     int ret, capcount, *ovec, ovecsize;
     char *receptacle = NULL;
@@ -214,7 +214,7 @@
 
 /**/
 int
-setup_(Module m)
+setup_(UNUSED(Module m))
 {
     return 0;
 }
@@ -238,7 +238,7 @@
 
 /**/
 int
-finish_(Module m)
+finish_(UNUSED(Module m))
 {
     return 0;
 }



Messages sorted by: Reverse Date, Date, Thread, Author