diff options
author | Wayne Davison <wayned@users.sourceforge.net> | 2004-06-02 22:14:25 +0000 |
---|---|---|
committer | Wayne Davison <wayned@users.sourceforge.net> | 2004-06-02 22:14:25 +0000 |
commit | fb0937a69eb38e744577aa94a6338135f6c1c9b4 (patch) | |
tree | 70c7404736602da0e91710dc3a991e3d2dc5377a /Src/Zle/compctl.c | |
parent | 30a139fe894f76ad256281b60a36c693bc561245 (diff) | |
download | zsh-fb0937a69eb38e744577aa94a6338135f6c1c9b4.tar.gz zsh-fb0937a69eb38e744577aa94a6338135f6c1c9b4.tar.xz zsh-fb0937a69eb38e744577aa94a6338135f6c1c9b4.zip |
Marked unused parameters with the new UNUSED() macro.
Diffstat (limited to 'Src/Zle/compctl.c')
-rw-r--r-- | Src/Zle/compctl.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Src/Zle/compctl.c b/Src/Zle/compctl.c index 9023dbd69..689d28a30 100644 --- a/Src/Zle/compctl.c +++ b/Src/Zle/compctl.c @@ -1572,7 +1572,7 @@ printcompctlp(HashNode hn, int printflags) /**/ static int -bin_compctl(char *name, char **argv, Options ops, int func) +bin_compctl(char *name, char **argv, UNUSED(Options ops), UNUSED(int func)) { Compctl cc = NULL; int ret = 0; @@ -1678,7 +1678,7 @@ bin_compctl(char *name, char **argv, Options ops, int func) #define CFN_DEFAULT 2 static int -bin_compcall(char *name, char **argv, Options ops, int func) +bin_compcall(char *name, UNUSED(char **argv), Options ops, UNUSED(int func)) { if (incompfunc != 1) { zwarnnam(name, "can only be called from completion function", NULL, 0); @@ -1755,7 +1755,7 @@ static int addwhat; /* Hook functions */ static int -ccmakehookfn(Hookdef dummy, struct ccmakedat *dat) +ccmakehookfn(UNUSED(Hookdef dummy), struct ccmakedat *dat) { char *s = dat->str; int incmd = dat->incmd, lst = dat->lst; @@ -1891,7 +1891,7 @@ ccmakehookfn(Hookdef dummy, struct ccmakedat *dat) } static int -cccleanuphookfn(Hookdef dummy, void *dat) +cccleanuphookfn(UNUSED(Hookdef dummy), UNUSED(void *dat)) { ccused = ccstack = NULL; return 0; @@ -2103,7 +2103,7 @@ dumphashtable(HashTable ht, int what) /**/ static void -addhnmatch(HashNode hn, int flags) +addhnmatch(HashNode hn, UNUSED(int flags)) { addmatch(hn->nam, NULL); } @@ -2345,7 +2345,7 @@ makecomplistctl(int flags) /**/ static int -makecomplistglobal(char *os, int incmd, int lst, int flags) +makecomplistglobal(char *os, int incmd, UNUSED(int lst), int flags) { Compctl cc = NULL; char *s; @@ -3896,7 +3896,7 @@ static struct builtin bintab[] = { /**/ int -setup_(Module m) +setup_(UNUSED(Module m)) { compctlreadptr = compctlread; createcompctltable(); @@ -3935,7 +3935,7 @@ cleanup_(Module m) /**/ int -finish_(Module m) +finish_(UNUSED(Module m)) { deletehashtable(compctltab); |