diff options
author | Clint Adams <clint@users.sourceforge.net> | 2004-06-22 23:47:57 +0000 |
---|---|---|
committer | Clint Adams <clint@users.sourceforge.net> | 2004-06-22 23:47:57 +0000 |
commit | ceb7a0983360e53fed050367db92b96786d32597 (patch) | |
tree | 9bec5f07321594d408d9f70bfeae0f0af6171e5c | |
parent | 08bd15e2823d5be249b3cb2ab7de1ffd55924ca4 (diff) | |
download | zsh-ceb7a0983360e53fed050367db92b96786d32597.tar.gz zsh-ceb7a0983360e53fed050367db92b96786d32597.tar.xz zsh-ceb7a0983360e53fed050367db92b96786d32597.zip |
20091: Src/Modules/pcre.c: silence gcc "unused parameter" warnings.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | Src/Modules/pcre.c | 10 |
2 files changed, 10 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog index 4eac297ff..c03905189 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2004-06-22 Clint Adams <clint@zsh.org> + + * 20091: Src/Modules/pcre.c: silence gcc "unused parameter" warnings. + 2004-06-22 Peter Stephenson <pws@csr.com> * 20076, 20084: Doc/Zsh/grammar.yo, Doc/Zsh/params.yo, Src/exec.c, @@ -16,7 +20,7 @@ * users/7267: Functions/Zle/predict-on: Minor update to cooperate with zle-line-init. -2004-06-18 Clint Adams <clint@zsh.org> +2004-06-19 Clint Adams <clint@zsh.org> * 20081: Doc/Zsh/mod_pcre.yo: document -pcre-match condition. diff --git a/Src/Modules/pcre.c b/Src/Modules/pcre.c index b6c63f976..2336b27d7 100644 --- a/Src/Modules/pcre.c +++ b/Src/Modules/pcre.c @@ -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; } |