1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-30 05:40:58 +01:00

20091: Src/Modules/pcre.c: silence gcc "unused parameter" warnings.

This commit is contained in:
Clint Adams 2004-06-22 23:47:57 +00:00
parent 08bd15e282
commit ceb7a09833
2 changed files with 10 additions and 6 deletions

View file

@ -42,7 +42,7 @@ static pcre_extra *pcre_hints;
/**/
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 @@ bin_pcre_compile(char *nam, char **args, Options ops, int func)
/**/
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 @@ zpcre_get_substrings(char *arg, int *ovec, int ret, char *receptacle)
/**/
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 @@ static struct conddef cotab[] = {
/**/
int
setup_(Module m)
setup_(UNUSED(Module m))
{
return 0;
}
@ -238,7 +238,7 @@ cleanup_(Module m)
/**/
int
finish_(Module m)
finish_(UNUSED(Module m))
{
return 0;
}