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/Modules | |
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/Modules')
-rw-r--r-- | Src/Modules/cap.c | 4 | ||||
-rw-r--r-- | Src/Modules/clone.c | 6 | ||||
-rw-r--r-- | Src/Modules/datetime.c | 6 | ||||
-rw-r--r-- | Src/Modules/example.c | 14 | ||||
-rw-r--r-- | Src/Modules/files.c | 18 | ||||
-rw-r--r-- | Src/Modules/langinfo.c | 12 | ||||
-rw-r--r-- | Src/Modules/mapfile.c | 14 | ||||
-rw-r--r-- | Src/Modules/mathfunc.c | 6 | ||||
-rw-r--r-- | Src/Modules/parameter.c | 98 | ||||
-rw-r--r-- | Src/Modules/socket.c | 6 | ||||
-rw-r--r-- | Src/Modules/stat.c | 6 | ||||
-rw-r--r-- | Src/Modules/system.c | 12 | ||||
-rw-r--r-- | Src/Modules/tcp.c | 10 | ||||
-rw-r--r-- | Src/Modules/termcap.c | 10 | ||||
-rw-r--r-- | Src/Modules/terminfo.c | 10 | ||||
-rw-r--r-- | Src/Modules/zftp.c | 38 | ||||
-rw-r--r-- | Src/Modules/zprof.c | 4 | ||||
-rw-r--r-- | Src/Modules/zpty.c | 8 | ||||
-rw-r--r-- | Src/Modules/zselect.c | 8 | ||||
-rw-r--r-- | Src/Modules/zutil.c | 12 |
20 files changed, 151 insertions, 151 deletions
diff --git a/Src/Modules/cap.c b/Src/Modules/cap.c index ba377f876..4ef8d9cb3 100644 --- a/Src/Modules/cap.c +++ b/Src/Modules/cap.c @@ -124,7 +124,7 @@ static struct builtin bintab[] = { /**/ int -setup_(Module m) +setup_(UNUSED(Module m)) { return 0; } @@ -146,7 +146,7 @@ cleanup_(Module m) /**/ int -finish_(Module m) +finish_(UNUSED(Module m)) { return 0; } diff --git a/Src/Modules/clone.c b/Src/Modules/clone.c index bb2240d49..60a21182b 100644 --- a/Src/Modules/clone.c +++ b/Src/Modules/clone.c @@ -41,7 +41,7 @@ /**/ static int -bin_clone(char *nam, char **args, Options ops, int func) +bin_clone(char *nam, char **args, UNUSED(Options ops), UNUSED(int func)) { int ttyfd, pid, cttyfd; @@ -111,7 +111,7 @@ static struct builtin bintab[] = { /**/ int -setup_(Module m) +setup_(UNUSED(Module m)) { return 0; } @@ -133,7 +133,7 @@ cleanup_(Module m) /**/ int -finish_(Module m) +finish_(UNUSED(Module m)) { return 0; } diff --git a/Src/Modules/datetime.c b/Src/Modules/datetime.c index d90791620..209675e5a 100644 --- a/Src/Modules/datetime.c +++ b/Src/Modules/datetime.c @@ -32,7 +32,7 @@ #include <time.h> static int -bin_strftime(char *nam, char **argv, Options ops, int func) +bin_strftime(char *nam, char **argv, Options ops, UNUSED(int func)) { int bufsize, x; char *endptr = NULL, *scalar = NULL, *buffer; @@ -93,7 +93,7 @@ static struct paramdef patab[] = { /**/ int -setup_(Module m) +setup_(UNUSED(Module m)) { return 0; } @@ -124,7 +124,7 @@ cleanup_(Module m) /**/ int -finish_(Module m) +finish_(UNUSED(Module m)) { return 0; } diff --git a/Src/Modules/example.c b/Src/Modules/example.c index 793d743fc..ab3a70592 100644 --- a/Src/Modules/example.c +++ b/Src/Modules/example.c @@ -39,7 +39,7 @@ static char **arrparam; /**/ static int -bin_example(char *nam, char **args, Options ops, int func) +bin_example(char *nam, char **args, Options ops, UNUSED(int func)) { unsigned char c; char **oargs = args, **p = arrparam; @@ -76,7 +76,7 @@ bin_example(char *nam, char **args, Options ops, int func) /**/ static int -cond_p_len(char **a, int id) +cond_p_len(char **a, UNUSED(int id)) { char *s1 = cond_str(a, 0, 0); @@ -91,7 +91,7 @@ cond_p_len(char **a, int id) /**/ static int -cond_i_ex(char **a, int id) +cond_i_ex(char **a, UNUSED(int id)) { char *s1 = cond_str(a, 0, 0), *s2 = cond_str(a, 1, 0); @@ -100,7 +100,7 @@ cond_i_ex(char **a, int id) /**/ static mnumber -math_sum(char *name, int argc, mnumber *argv, int id) +math_sum(UNUSED(char *name), int argc, mnumber *argv, UNUSED(int id)) { mnumber ret; int f = 0; @@ -129,7 +129,7 @@ math_sum(char *name, int argc, mnumber *argv, int id) /**/ static mnumber -math_length(char *name, char *arg, int id) +math_length(UNUSED(char *name), char *arg, UNUSED(int id)) { mnumber ret; @@ -186,7 +186,7 @@ static struct funcwrap wrapper[] = { /**/ int -setup_(Module m) +setup_(UNUSED(Module m)) { printf("The example module has now been set up.\n"); fflush(stdout); @@ -224,7 +224,7 @@ cleanup_(Module m) /**/ int -finish_(Module m) +finish_(UNUSED(Module m)) { printf("Thank you for using the example module. Have a nice day.\n"); fflush(stdout); diff --git a/Src/Modules/files.c b/Src/Modules/files.c index 82429a986..30ed32103 100644 --- a/Src/Modules/files.c +++ b/Src/Modules/files.c @@ -56,7 +56,7 @@ ask(void) /**/ static int -bin_sync(char *nam, char **args, Options ops, int func) +bin_sync(UNUSED(char *nam), UNUSED(char **args), UNUSED(Options ops), UNUSED(int func)) { sync(); return 0; @@ -66,7 +66,7 @@ bin_sync(char *nam, char **args, Options ops, int func) /**/ static int -bin_mkdir(char *nam, char **args, Options ops, int func) +bin_mkdir(char *nam, char **args, Options ops, UNUSED(int func)) { mode_t oumask = umask(0); mode_t mode = 0777 & ~oumask; @@ -143,7 +143,7 @@ domkdir(char *nam, char *path, mode_t mode, int p) /**/ static int -bin_rmdir(char *nam, char **args, Options ops, int func) +bin_rmdir(char *nam, char **args, UNUSED(Options ops), UNUSED(int func)) { int err = 0; @@ -477,7 +477,7 @@ recursivecmd_dorec(struct recursivecmd const *reccmd, /**/ static int -recurse_donothing(char *arg, char *rp, struct stat const *sp, void *magic) +recurse_donothing(UNUSED(char *arg), UNUSED(char *rp), UNUSED(struct stat const *sp), UNUSED(void *magic)) { return 0; } @@ -541,7 +541,7 @@ rm_leaf(char *arg, char *rp, struct stat const *sp, void *magic) /**/ static int -rm_dirpost(char *arg, char *rp, struct stat const *sp, void *magic) +rm_dirpost(char *arg, char *rp, UNUSED(struct stat const *sp), void *magic) { struct rmmagic *rmm = magic; @@ -563,7 +563,7 @@ rm_dirpost(char *arg, char *rp, struct stat const *sp, void *magic) /**/ static int -bin_rm(char *nam, char **args, Options ops, int func) +bin_rm(char *nam, char **args, Options ops, UNUSED(int func)) { struct rmmagic rmm; int err; @@ -589,7 +589,7 @@ struct chownmagic { /**/ static int -chown_dochown(char *arg, char *rp, struct stat const *sp, void *magic) +chown_dochown(char *arg, char *rp, UNUSED(struct stat const *sp), void *magic) { struct chownmagic *chm = magic; @@ -708,7 +708,7 @@ static struct builtin bintab[] = { /**/ int -setup_(Module m) +setup_(UNUSED(Module m)) { return 0; } @@ -730,7 +730,7 @@ cleanup_(Module m) /**/ int -finish_(Module m) +finish_(UNUSED(Module m)) { return 0; } diff --git a/Src/Modules/langinfo.c b/Src/Modules/langinfo.c index 66d0228aa..677440f52 100644 --- a/Src/Modules/langinfo.c +++ b/Src/Modules/langinfo.c @@ -439,7 +439,7 @@ createlihash() /**/ static HashNode -getlanginfo(HashTable ht, char *name) +getlanginfo(UNUSED(HashTable ht), char *name) { int len, *elem; char *listr; @@ -480,7 +480,7 @@ getlanginfo(HashTable ht, char *name) /**/ static void -scanlanginfo(HashTable ht, ScanFunc func, int flags) +scanlanginfo(UNUSED(HashTable ht), ScanFunc func, int flags) { Param pm = NULL; char **element, *langstr; @@ -515,14 +515,14 @@ scanlanginfo(HashTable ht, ScanFunc func, int flags) /**/ int -setup_(Module m) +setup_(UNUSED(Module m)) { return 0; } /**/ int -boot_(Module m) +boot_(UNUSED(Module m)) { #ifdef HAVE_NL_LANGINFO if (!createlihash()) @@ -535,7 +535,7 @@ boot_(Module m) /**/ int -cleanup_(Module m) +cleanup_(UNUSED(Module m)) { #ifdef HAVE_NL_LANGINFO Param pm; @@ -551,7 +551,7 @@ cleanup_(Module m) /**/ int -finish_(Module m) +finish_(UNUSED(Module m)) { return 0; } diff --git a/Src/Modules/mapfile.c b/Src/Modules/mapfile.c index 586e4a24e..66e311c63 100644 --- a/Src/Modules/mapfile.c +++ b/Src/Modules/mapfile.c @@ -171,7 +171,7 @@ setpmmapfile(Param pm, char *value) /**/ static void -unsetpmmapfile(Param pm, int exp) +unsetpmmapfile(Param pm, UNUSED(int exp)) { /* Unlink the file given by pm->nam */ char *fname = ztrdup(pm->nam); @@ -259,7 +259,7 @@ get_contents(char *fname) /**/ static HashNode -getpmmapfile(HashTable ht, char *name) +getpmmapfile(UNUSED(HashTable ht), char *name) { char *contents; Param pm = NULL; @@ -290,7 +290,7 @@ getpmmapfile(HashTable ht, char *name) /**/ static void -scanpmmapfile(HashTable ht, ScanFunc func, int flags) +scanpmmapfile(UNUSED(HashTable ht), ScanFunc func, int flags) { struct param pm; DIR *dir; @@ -327,14 +327,14 @@ scanpmmapfile(HashTable ht, ScanFunc func, int flags) /**/ int -setup_(Module m) +setup_(UNUSED(Module m)) { return 0; } /**/ int -boot_(Module m) +boot_(UNUSED(Module m)) { /* Create the special associative array. */ @@ -346,7 +346,7 @@ boot_(Module m) /**/ int -cleanup_(Module m) +cleanup_(UNUSED(Module m)) { Param pm; @@ -362,7 +362,7 @@ cleanup_(Module m) /**/ int -finish_(Module m) +finish_(UNUSED(Module m)) { return 0; } diff --git a/Src/Modules/mathfunc.c b/Src/Modules/mathfunc.c index af4366420..691755683 100644 --- a/Src/Modules/mathfunc.c +++ b/Src/Modules/mathfunc.c @@ -462,7 +462,7 @@ math_func(char *name, int argc, mnumber *argv, int id) /**/ static mnumber -math_string(char *name, char *arg, int id) +math_string(UNUSED(char *name), char *arg, int id) { mnumber ret = zero_mnumber; char *send; @@ -556,7 +556,7 @@ math_string(char *name, char *arg, int id) /**/ int -setup_(Module m) +setup_(UNUSED(Module m)) { return 0; } @@ -578,7 +578,7 @@ cleanup_(Module m) /**/ int -finish_(Module m) +finish_(UNUSED(Module m)) { return 0; } diff --git a/Src/Modules/parameter.c b/Src/Modules/parameter.c index 5a09bd23c..01737ca27 100644 --- a/Src/Modules/parameter.c +++ b/Src/Modules/parameter.c @@ -136,7 +136,7 @@ paramtypestr(Param pm) /**/ static HashNode -getpmparameter(HashTable ht, char *name) +getpmparameter(UNUSED(HashTable ht), char *name) { Param rpm, pm = NULL; @@ -163,7 +163,7 @@ getpmparameter(HashTable ht, char *name) /**/ static void -scanpmparameters(HashTable ht, ScanFunc func, int flags) +scanpmparameters(UNUSED(HashTable ht), ScanFunc func, int flags) { struct param pm; int i; @@ -213,7 +213,7 @@ setpmcommand(Param pm, char *value) /**/ static void -unsetpmcommand(Param pm, int exp) +unsetpmcommand(Param pm, UNUSED(int exp)) { HashNode hn = cmdnamtab->removenode(cmdnamtab, pm->nam); @@ -223,7 +223,7 @@ unsetpmcommand(Param pm, int exp) /**/ static void -setpmcommands(Param pm, HashTable ht) +setpmcommands(UNUSED(Param pm), HashTable ht) { int i; HashNode hn; @@ -251,7 +251,7 @@ setpmcommands(Param pm, HashTable ht) /**/ static HashNode -getpmcommand(HashTable ht, char *name) +getpmcommand(UNUSED(HashTable ht), char *name) { Cmdnam cmd; Param pm = NULL; @@ -290,7 +290,7 @@ getpmcommand(HashTable ht, char *name) /**/ static void -scanpmcommands(HashTable ht, ScanFunc func, int flags) +scanpmcommands(UNUSED(HashTable ht), ScanFunc func, int flags) { struct param pm; int i; @@ -385,7 +385,7 @@ setpmdisfunction(Param pm, char *value) /**/ static void -unsetpmfunction(Param pm, int exp) +unsetpmfunction(Param pm, UNUSED(int exp)) { HashNode hn = shfunctab->removenode(shfunctab, pm->nam); @@ -395,7 +395,7 @@ unsetpmfunction(Param pm, int exp) /**/ static void -setfunctions(Param pm, HashTable ht, int dis) +setfunctions(UNUSED(Param pm), HashTable ht, int dis) { int i; HashNode hn; @@ -433,7 +433,7 @@ setpmdisfunctions(Param pm, HashTable ht) /**/ static HashNode -getfunction(HashTable ht, char *name, int dis) +getfunction(UNUSED(HashTable ht), char *name, int dis) { Shfunc shf; Param pm = NULL; @@ -498,7 +498,7 @@ getpmdisfunction(HashTable ht, char *name) /**/ static void -scanfunctions(HashTable ht, ScanFunc func, int flags, int dis) +scanfunctions(UNUSED(HashTable ht), ScanFunc func, int flags, int dis) { struct param pm; int i; @@ -568,7 +568,7 @@ scanpmdisfunctions(HashTable ht, ScanFunc func, int flags) /**/ static char ** -funcstackgetfn(Param pm) +funcstackgetfn(UNUSED(Param pm)) { Funcstack f; int num; @@ -589,7 +589,7 @@ funcstackgetfn(Param pm) /**/ static HashNode -getbuiltin(HashTable ht, char *name, int dis) +getbuiltin(UNUSED(HashTable ht), char *name, int dis) { Param pm = NULL; Builtin bn; @@ -634,7 +634,7 @@ getpmdisbuiltin(HashTable ht, char *name) /**/ static void -scanbuiltins(HashTable ht, ScanFunc func, int flags, int dis) +scanbuiltins(UNUSED(HashTable ht), ScanFunc func, int flags, int dis) { struct param pm; int i; @@ -705,14 +705,14 @@ getreswords(int dis) /**/ static char ** -reswordsgetfn(Param pm) +reswordsgetfn(UNUSED(Param pm)) { return getreswords(0); } /**/ static char ** -disreswordsgetfn(Param pm) +disreswordsgetfn(UNUSED(Param pm)) { return getreswords(DISABLED); } @@ -736,7 +736,7 @@ setpmoption(Param pm, char *value) /**/ static void -unsetpmoption(Param pm, int exp) +unsetpmoption(Param pm, UNUSED(int exp)) { int n; @@ -748,7 +748,7 @@ unsetpmoption(Param pm, int exp) /**/ static void -setpmoptions(Param pm, HashTable ht) +setpmoptions(UNUSED(Param pm), HashTable ht) { int i; HashNode hn; @@ -778,7 +778,7 @@ setpmoptions(Param pm, HashTable ht) /**/ static HashNode -getpmoption(HashTable ht, char *name) +getpmoption(UNUSED(HashTable ht), char *name) { Param pm = NULL; int n; @@ -813,7 +813,7 @@ getpmoption(HashTable ht, char *name) /**/ static void -scanpmoptions(HashTable ht, ScanFunc func, int flags) +scanpmoptions(UNUSED(HashTable ht), ScanFunc func, int flags) { struct param pm; int i; @@ -846,7 +846,7 @@ static int modpmfound; /**/ static void -modpmbuiltinscan(HashNode hn, int dummy) +modpmbuiltinscan(HashNode hn, UNUSED(int dummy)) { if (!(((Builtin) hn)->flags & BINF_ADDED) && !strcmp(((Builtin) hn)->optstr, modpmname)) @@ -855,7 +855,7 @@ modpmbuiltinscan(HashNode hn, int dummy) /**/ static void -modpmparamscan(HashNode hn, int dummy) +modpmparamscan(HashNode hn, UNUSED(int dummy)) { if ((((Param) hn)->flags & PM_AUTOLOAD) && !strcmp(((Param) hn)->u.str, modpmname)) @@ -877,7 +877,7 @@ findmodnode(LinkList l, char *nam) /**/ static HashNode -getpmmodule(HashTable ht, char *name) +getpmmodule(UNUSED(HashTable ht), char *name) { Param pm = NULL; char *type = NULL; @@ -937,7 +937,7 @@ getpmmodule(HashTable ht, char *name) /**/ static void -scanpmmodules(HashTable ht, ScanFunc func, int flags) +scanpmmodules(UNUSED(HashTable ht), ScanFunc func, int flags) { struct param pm; int i; @@ -999,7 +999,7 @@ scanpmmodules(HashTable ht, ScanFunc func, int flags) /**/ static void -dirssetfn(Param pm, char **x) +dirssetfn(UNUSED(Param pm), char **x) { char **ox = x; @@ -1015,7 +1015,7 @@ dirssetfn(Param pm, char **x) /**/ static char ** -dirsgetfn(Param pm) +dirsgetfn(UNUSED(Param pm)) { int l = countlinknodes(dirstack); char **ret = (char **) zhalloc((l + 1) * sizeof(char *)), **p; @@ -1032,7 +1032,7 @@ dirsgetfn(Param pm) /**/ static HashNode -getpmhistory(HashTable ht, char *name) +getpmhistory(UNUSED(HashTable ht), char *name) { Param pm = NULL; Histent he; @@ -1071,7 +1071,7 @@ getpmhistory(HashTable ht, char *name) /**/ static void -scanpmhistory(HashTable ht, ScanFunc func, int flags) +scanpmhistory(UNUSED(HashTable ht), ScanFunc func, int flags) { struct param pm; int i = addhistnum(curhist, -1, HIST_FOREIGN); @@ -1106,7 +1106,7 @@ scanpmhistory(HashTable ht, ScanFunc func, int flags) /**/ static char ** -histwgetfn(Param pm) +histwgetfn(UNUSED(Param pm)) { char **ret, **p, *h, *e, sav; LinkList l = newlinklist(), ll; @@ -1164,7 +1164,7 @@ pmjobtext(int job) /**/ static HashNode -getpmjobtext(HashTable ht, char *name) +getpmjobtext(UNUSED(HashTable ht), char *name) { Param pm = NULL; int job; @@ -1194,7 +1194,7 @@ getpmjobtext(HashTable ht, char *name) /**/ static void -scanpmjobtexts(HashTable ht, ScanFunc func, int flags) +scanpmjobtexts(UNUSED(HashTable ht), ScanFunc func, int flags) { struct param pm; int job; @@ -1274,7 +1274,7 @@ pmjobstate(int job) /**/ static HashNode -getpmjobstate(HashTable ht, char *name) +getpmjobstate(UNUSED(HashTable ht), char *name) { Param pm = NULL; int job; @@ -1304,7 +1304,7 @@ getpmjobstate(HashTable ht, char *name) /**/ static void -scanpmjobstates(HashTable ht, ScanFunc func, int flags) +scanpmjobstates(UNUSED(HashTable ht), ScanFunc func, int flags) { struct param pm; int job; @@ -1349,7 +1349,7 @@ pmjobdir(int job) /**/ static HashNode -getpmjobdir(HashTable ht, char *name) +getpmjobdir(UNUSED(HashTable ht), char *name) { Param pm = NULL; int job; @@ -1379,7 +1379,7 @@ getpmjobdir(HashTable ht, char *name) /**/ static void -scanpmjobdirs(HashTable ht, ScanFunc func, int flags) +scanpmjobdirs(UNUSED(HashTable ht), ScanFunc func, int flags) { struct param pm; int job; @@ -1429,7 +1429,7 @@ setpmnameddir(Param pm, char *value) /**/ static void -unsetpmnameddir(Param pm, int exp) +unsetpmnameddir(Param pm, UNUSED(int exp)) { HashNode hd = nameddirtab->removenode(nameddirtab, pm->nam); @@ -1439,7 +1439,7 @@ unsetpmnameddir(Param pm, int exp) /**/ static void -setpmnameddirs(Param pm, HashTable ht) +setpmnameddirs(UNUSED(Param pm), HashTable ht) { int i; HashNode hn, next, hd; @@ -1487,7 +1487,7 @@ setpmnameddirs(Param pm, HashTable ht) /**/ static HashNode -getpmnameddir(HashTable ht, char *name) +getpmnameddir(UNUSED(HashTable ht), char *name) { Param pm = NULL; Nameddir nd; @@ -1515,7 +1515,7 @@ getpmnameddir(HashTable ht, char *name) /**/ static void -scanpmnameddirs(HashTable ht, ScanFunc func, int flags) +scanpmnameddirs(UNUSED(HashTable ht), ScanFunc func, int flags) { struct param pm; int i; @@ -1549,7 +1549,7 @@ scanpmnameddirs(HashTable ht, ScanFunc func, int flags) /**/ static HashNode -getpmuserdir(HashTable ht, char *name) +getpmuserdir(UNUSED(HashTable ht), char *name) { Param pm = NULL; Nameddir nd; @@ -1579,7 +1579,7 @@ getpmuserdir(HashTable ht, char *name) /**/ static void -scanpmuserdirs(HashTable ht, ScanFunc func, int flags) +scanpmuserdirs(UNUSED(HashTable ht), ScanFunc func, int flags) { struct param pm; int i; @@ -1665,7 +1665,7 @@ setpmdissalias(Param pm, char *value) /**/ static void -unsetpmalias(Param pm, int exp) +unsetpmalias(Param pm, UNUSED(int exp)) { HashNode hd = aliastab->removenode(aliastab, pm->nam); @@ -1675,7 +1675,7 @@ unsetpmalias(Param pm, int exp) /**/ static void -unsetpmsalias(Param pm, int exp) +unsetpmsalias(Param pm, UNUSED(int exp)) { HashNode hd = sufaliastab->removenode(sufaliastab, pm->nam); @@ -1685,7 +1685,7 @@ unsetpmsalias(Param pm, int exp) /**/ static void -setaliases(HashTable alht, Param pm, HashTable ht, int flags) +setaliases(HashTable alht, UNUSED(Param pm), HashTable ht, int flags) { int i; HashNode hn, next, hd; @@ -1813,7 +1813,7 @@ assignaliasdefs(Param pm, int flags) /**/ static HashNode -getalias(HashTable alht, HashTable ht, char *name, int flags) +getalias(HashTable alht, UNUSED(HashTable ht), char *name, int flags) { Param pm = NULL; Alias al; @@ -1877,7 +1877,7 @@ getpmdissalias(HashTable ht, char *name) /**/ static void -scanaliases(HashTable alht, HashTable ht, ScanFunc func, +scanaliases(HashTable alht, UNUSED(HashTable ht), ScanFunc func, int pmflags, int alflags) { struct param pm; @@ -2036,7 +2036,7 @@ static struct pardef partab[] = { /**/ int -setup_(Module m) +setup_(UNUSED(Module m)) { incleanup = 0; @@ -2045,7 +2045,7 @@ setup_(Module m) /**/ int -boot_(Module m) +boot_(UNUSED(Module m)) { /* Create the special associative arrays. * As an example for autoloaded parameters, this is probably a bad @@ -2078,7 +2078,7 @@ boot_(Module m) /**/ int -cleanup_(Module m) +cleanup_(UNUSED(Module m)) { Param pm; struct pardef *def; @@ -2097,7 +2097,7 @@ cleanup_(Module m) /**/ int -finish_(Module m) +finish_(UNUSED(Module m)) { return 0; } diff --git a/Src/Modules/socket.c b/Src/Modules/socket.c index ace990ab4..5339e72b7 100644 --- a/Src/Modules/socket.c +++ b/Src/Modules/socket.c @@ -58,7 +58,7 @@ #endif static int -bin_zsocket(char *nam, char **args, Options ops, int func) +bin_zsocket(char *nam, char **args, Options ops, UNUSED(int func)) { int err=1, verbose=0, test=0, targetfd=0; SOCKLEN_T len; @@ -254,7 +254,7 @@ static struct builtin bintab[] = { /**/ int -setup_(Module m) +setup_(UNUSED(Module m)) { return 0; } @@ -277,7 +277,7 @@ cleanup_(Module m) /**/ int -finish_(Module m) +finish_(UNUSED(Module m)) { return 0; } diff --git a/Src/Modules/stat.c b/Src/Modules/stat.c index 162612ee9..29a4099d6 100644 --- a/Src/Modules/stat.c +++ b/Src/Modules/stat.c @@ -341,7 +341,7 @@ statprint(struct stat *sbuf, char *outbuf, char *fname, int iwhich, int flags) */ /**/ static int -bin_stat(char *name, char **args, Options ops, int func) +bin_stat(char *name, char **args, Options ops, UNUSED(int func)) { char **aptr, *arrnam = NULL, **array = NULL, **arrptr = NULL; char *hashnam = NULL, **hash = NULL, **hashptr = NULL; @@ -615,7 +615,7 @@ static struct builtin bintab[] = { /**/ int -setup_(Module m) +setup_(UNUSED(Module m)) { return 0; } @@ -637,7 +637,7 @@ cleanup_(Module m) /**/ int -finish_(Module m) +finish_(UNUSED(Module m)) { return 0; } diff --git a/Src/Modules/system.c b/Src/Modules/system.c index 91811ae79..f292c1924 100644 --- a/Src/Modules/system.c +++ b/Src/Modules/system.c @@ -68,7 +68,7 @@ getposint(char *instr, char *nam) /**/ static int -bin_sysread(char *nam, char **args, Options ops, int func) +bin_sysread(char *nam, char **args, Options ops, UNUSED(int func)) { int infd = 0, outfd = -1, bufsize = SYSREAD_BUFSIZE, count; char *outvar = NULL, *countvar = NULL, *inbuf; @@ -236,7 +236,7 @@ bin_sysread(char *nam, char **args, Options ops, int func) /**/ static int -bin_syswrite(char *nam, char **args, Options ops, int func) +bin_syswrite(char *nam, char **args, Options ops, UNUSED(int func)) { int outfd = 1, len, count, totcount; char *countvar = NULL; @@ -290,7 +290,7 @@ bin_syswrite(char *nam, char **args, Options ops, int func) /**/ static int -bin_syserror(char *nam, char **args, Options ops, int func) +bin_syserror(char *nam, char **args, Options ops, UNUSED(int func)) { int num = 0; char *errvar = NULL, *msg, *pfx = "", *str; @@ -345,7 +345,7 @@ bin_syserror(char *nam, char **args, Options ops, int func) /**/ static char ** -errnosgetfn(Param pm) +errnosgetfn(UNUSED(Param pm)) { /* arrdup etc. should really take const pointers as arguments */ return arrdup((char **)sys_errnames); @@ -363,7 +363,7 @@ static struct builtin bintab[] = { /**/ int -setup_(Module m) +setup_(UNUSED(Module m)) { return 0; } @@ -414,7 +414,7 @@ cleanup_(Module m) /**/ int -finish_(Module m) +finish_(UNUSED(Module m)) { return 0; } diff --git a/Src/Modules/tcp.c b/Src/Modules/tcp.c index 453f7bf21..586c2a19e 100644 --- a/Src/Modules/tcp.c +++ b/Src/Modules/tcp.c @@ -167,7 +167,7 @@ zsh_gethostbyname2(char const *name, int af) /**/ mod_export struct hostent * -zsh_getipnodebyname(char const *name, int af, int flags, int *errorp) +zsh_getipnodebyname(char const *name, int af, UNUSED(int flags), int *errorp) { static struct hostent ahe; static char nbuf[16]; @@ -195,7 +195,7 @@ zsh_getipnodebyname(char const *name, int af, int flags, int *errorp) /**/ mod_export void -freehostent(struct hostent *ptr) +freehostent(UNUSED(struct hostent *ptr)) { } @@ -337,7 +337,7 @@ tcp_connect(Tcp_session sess, char *addrp, struct hostent *zhost, int d_port) } static int -bin_ztcp(char *nam, char **args, Options ops, int func) +bin_ztcp(char *nam, char **args, Options ops, UNUSED(int func)) { int herrno, err=1, destport, force=0, verbose=0, test=0, targetfd=0; SOCKLEN_T len; @@ -680,7 +680,7 @@ static struct builtin bintab[] = { /**/ int -setup_(Module m) +setup_(UNUSED(Module m)) { return 0; } @@ -706,7 +706,7 @@ cleanup_(Module m) /**/ int -finish_(Module m) +finish_(UNUSED(Module m)) { return 0; } diff --git a/Src/Modules/termcap.c b/Src/Modules/termcap.c index 3b1e6e1e6..a74a0538e 100644 --- a/Src/Modules/termcap.c +++ b/Src/Modules/termcap.c @@ -103,7 +103,7 @@ ztgetflag(char *s) /**/ static int -bin_echotc(char *name, char **argv, Options ops, int func) +bin_echotc(char *name, char **argv, UNUSED(Options ops), UNUSED(int func)) { char *s, buf[2048], *t, *u; int num, argct; @@ -219,7 +219,7 @@ createtchash() /**/ static HashNode -gettermcap(HashTable ht, char *name) +gettermcap(UNUSED(HashTable ht), char *name) { int len, num; char *tcstr, buf[2048], *u; @@ -284,7 +284,7 @@ gettermcap(HashTable ht, char *name) /**/ static void -scantermcap(HashTable ht, ScanFunc func, int flags) +scantermcap(UNUSED(HashTable ht), ScanFunc func, int flags) { Param pm = NULL; int num; @@ -389,7 +389,7 @@ scantermcap(HashTable ht, ScanFunc func, int flags) /**/ int -setup_(Module m) +setup_(UNUSED(Module m)) { return 0; } @@ -430,7 +430,7 @@ cleanup_(Module m) /**/ int -finish_(Module m) +finish_(UNUSED(Module m)) { return 0; } diff --git a/Src/Modules/terminfo.c b/Src/Modules/terminfo.c index 8b0ac6307..6e9e32588 100644 --- a/Src/Modules/terminfo.c +++ b/Src/Modules/terminfo.c @@ -61,7 +61,7 @@ static Param terminfo_pm; /**/ static int -bin_echoti(char *name, char **argv, Options ops, int func) +bin_echoti(char *name, char **argv, UNUSED(Options ops), UNUSED(int func)) { char *s, *t, **u; int arg, num, strarg = 0; @@ -187,7 +187,7 @@ createtihash() /**/ static HashNode -getterminfo(HashTable ht, char *name) +getterminfo(UNUSED(HashTable ht), char *name) { int len, num; char *tistr; @@ -243,7 +243,7 @@ getterminfo(HashTable ht, char *name) /**/ static void -scanterminfo(HashTable ht, ScanFunc func, int flags) +scanterminfo(UNUSED(HashTable ht), ScanFunc func, int flags) { Param pm = NULL; int num; @@ -369,7 +369,7 @@ scanterminfo(HashTable ht, ScanFunc func, int flags) /**/ int -setup_(Module m) +setup_(UNUSED(Module m)) { return 0; } @@ -413,7 +413,7 @@ cleanup_(Module m) /**/ int -finish_(Module m) +finish_(UNUSED(Module m)) { return 0; } diff --git a/Src/Modules/zftp.c b/Src/Modules/zftp.c index e4c5a9703..a36b6bf3e 100644 --- a/Src/Modules/zftp.c +++ b/Src/Modules/zftp.c @@ -2068,7 +2068,7 @@ zfgetinfo(char *prompt, int noecho) /**/ static int -zftp_params(char *name, char **args, int flags) +zftp_params(UNUSED(char *name), char **args, UNUSED(int flags)) { char *prompts[] = { "Host: ", "User: ", "Password: ", "Account: " }; char **aptr, **newarr; @@ -2122,7 +2122,7 @@ zftp_params(char *name, char **args, int flags) /**/ static int -zftp_login(char *name, char **args, int flags) +zftp_login(char *name, char **args, UNUSED(int flags)) { char *ucmd, *passwd = NULL, *acct = NULL; char *user, tbuf[2] = "X"; @@ -2255,7 +2255,7 @@ zftp_login(char *name, char **args, int flags) /**/ static int -zftp_test(char *name, char **args, int flags) +zftp_test(UNUSED(char *name), UNUSED(char **args), UNUSED(int flags)) { #if defined(HAVE_POLL) || defined(HAVE_SELECT) int ret; @@ -2336,7 +2336,7 @@ zftp_dir(char *name, char **args, int flags) /**/ static int -zftp_cd(char *name, char **args, int flags) +zftp_cd(UNUSED(char *name), char **args, int flags) { /* change directory --- enhance to allow 'zftp cdup' */ int ret; @@ -2468,7 +2468,7 @@ zftp_type(char *name, char **args, int flags) /**/ static int -zftp_mode(char *name, char **args, int flags) +zftp_mode(char *name, char **args, UNUSED(int flags)) { char *str, cmd[] = "MODE X\r\n"; int nt; @@ -2495,7 +2495,7 @@ zftp_mode(char *name, char **args, int flags) /**/ static int -zftp_local(char *name, char **args, int flags) +zftp_local(UNUSED(char *name), char **args, int flags) { int more = !!args[1], ret = 0, dofd = !*args; while (*args || dofd) { @@ -2638,7 +2638,7 @@ zftp_getput(char *name, char **args, int flags) /**/ static int -zftp_delete(char *name, char **args, int flags) +zftp_delete(UNUSED(char *name), char **args, UNUSED(int flags)) { int ret = 0; char *cmd, **aptr; @@ -2655,7 +2655,7 @@ zftp_delete(char *name, char **args, int flags) /**/ static int -zftp_mkdir(char *name, char **args, int flags) +zftp_mkdir(UNUSED(char *name), char **args, int flags) { int ret; char *cmd = tricat((flags & ZFTP_DELE) ? "RMD " : "MKD ", @@ -2669,7 +2669,7 @@ zftp_mkdir(char *name, char **args, int flags) /**/ static int -zftp_rename(char *name, char **args, int flags) +zftp_rename(UNUSED(char *name), char **args, UNUSED(int flags)) { int ret; char *cmd; @@ -2693,7 +2693,7 @@ zftp_rename(char *name, char **args, int flags) /**/ static int -zftp_quote(char *name, char **args, int flags) +zftp_quote(UNUSED(char *name), char **args, int flags) { int ret = 0; char *cmd; @@ -2785,7 +2785,7 @@ zfclose(int leaveparams) /**/ static int -zftp_close(char *name, char **args, int flags) +zftp_close(UNUSED(char *name), UNUSED(char **args), UNUSED(int flags)) { zfclose(0); return 0; @@ -2892,7 +2892,7 @@ freesession(Zftp_session sptr) /**/ static int -zftp_session(char *name, char **args, int flags) +zftp_session(UNUSED(char *name), char **args, UNUSED(int flags)) { if (!*args) { LinkNode nptr; @@ -2918,7 +2918,7 @@ zftp_session(char *name, char **args, int flags) /**/ static int -zftp_rmsession(char *name, char **args, int flags) +zftp_rmsession(UNUSED(char *name), char **args, UNUSED(int flags)) { int no; LinkNode nptr; @@ -3005,7 +3005,7 @@ zftp_rmsession(char *name, char **args, int flags) /**/ static int -bin_zftp(char *name, char **args, Options ops, int func) +bin_zftp(char *name, char **args, UNUSED(Options ops), UNUSED(int func)) { char fullname[20] = "zftp "; char *cnam = *args++, *prefs, *ptr; @@ -3157,7 +3157,7 @@ zftp_cleanup(void) } static int -zftpexithook(Hookdef d, void *dummy) +zftpexithook(UNUSED(Hookdef d), UNUSED(void *dummy)) { zftp_cleanup(); return 0; @@ -3167,7 +3167,7 @@ zftpexithook(Hookdef d, void *dummy) /**/ int -setup_(Module m) +setup_(UNUSED(Module m)) { /* setup_ returns 0 for success. require_module returns 1 for success. */ return !require_module("", "zsh/net/tcp", 0, 0); @@ -3175,7 +3175,7 @@ setup_(Module m) /**/ int -boot_(Module m) +boot_(UNUSED(Module m)) { int ret; if ((ret = addbuiltins("zftp", bintab, @@ -3199,7 +3199,7 @@ boot_(Module m) /**/ int -cleanup_(Module m) +cleanup_(UNUSED(Module m)) { deletehookfunc("exit", zftpexithook); zftp_cleanup(); @@ -3208,7 +3208,7 @@ cleanup_(Module m) /**/ int -finish_(Module m) +finish_(UNUSED(Module m)) { return 0; } diff --git a/Src/Modules/zprof.c b/Src/Modules/zprof.c index 3121efacf..ca053a9e9 100644 --- a/Src/Modules/zprof.c +++ b/Src/Modules/zprof.c @@ -136,7 +136,7 @@ cmpparcs(Parc *a, Parc *b) } static int -bin_zprof(char *nam, char **args, Options ops, int func) +bin_zprof(UNUSED(char *nam), UNUSED(char **args), Options ops, UNUSED(int func)) { if (OPT_ISSET(ops,'c')) { freepfuncs(calls); @@ -329,7 +329,7 @@ cleanup_(Module m) /**/ int -finish_(Module m) +finish_(UNUSED(Module m)) { return 0; } diff --git a/Src/Modules/zpty.c b/Src/Modules/zpty.c index 360d1cc63..fce09a02a 100644 --- a/Src/Modules/zpty.c +++ b/Src/Modules/zpty.c @@ -622,7 +622,7 @@ ptywrite(Ptycmd cmd, char **args, int nonl) /**/ static int -bin_zpty(char *nam, char **args, Options ops, int func) +bin_zpty(char *nam, char **args, Options ops, UNUSED(int func)) { if ((OPT_ISSET(ops,'r') && OPT_ISSET(ops,'w')) || ((OPT_ISSET(ops,'r') || OPT_ISSET(ops,'w')) && @@ -721,7 +721,7 @@ bin_zpty(char *nam, char **args, Options ops, int func) } static int -ptyhook(Hookdef d, void *dummy) +ptyhook(UNUSED(Hookdef d), UNUSED(void *dummy)) { deleteallptycmds(); return 0; @@ -733,7 +733,7 @@ static struct builtin bintab[] = { /**/ int -setup_(Module m) +setup_(UNUSED(Module m)) { return 0; } @@ -760,7 +760,7 @@ cleanup_(Module m) /**/ int -finish_(Module m) +finish_(UNUSED(Module m)) { return 0; } diff --git a/Src/Modules/zselect.c b/Src/Modules/zselect.c index 1e6753263..ea7396e30 100644 --- a/Src/Modules/zselect.c +++ b/Src/Modules/zselect.c @@ -62,7 +62,7 @@ handle_digits(char *nam, char *argptr, fd_set *fdset, int *fdmax) /**/ static int -bin_zselect(char *nam, char **args, Options ops, int func) +bin_zselect(char *nam, char **args, UNUSED(Options ops), UNUSED(int func)) { #ifdef HAVE_SELECT int i, fd, fdsetind = 0, fdmax = 0, fdcount; @@ -278,7 +278,7 @@ static struct builtin bintab[] = { /**/ int -setup_(Module m) +setup_(UNUSED(Module m)) { return 0; } @@ -293,7 +293,7 @@ boot_(Module m) /**/ int -cleanup_(Module m) +cleanup_(UNUSED(Module m)) { deletebuiltins("zselect", bintab, sizeof(bintab)/sizeof(*bintab)); return 0; @@ -301,7 +301,7 @@ cleanup_(Module m) /**/ int -finish_(Module m) +finish_(UNUSED(Module m)) { return 0; } diff --git a/Src/Modules/zutil.c b/Src/Modules/zutil.c index 57a368aab..9b81ba92e 100644 --- a/Src/Modules/zutil.c +++ b/Src/Modules/zutil.c @@ -254,7 +254,7 @@ lookupstyle(char *ctxt, char *style) } static int -bin_zstyle(char *nam, char **args, Options ops, int func) +bin_zstyle(char *nam, char **args, UNUSED(Options ops), UNUSED(int func)) { int min, max, n, add = 0, list = 0, eval = 0; @@ -692,7 +692,7 @@ static char *zformat_substring(char* instr, char **specs, char **outp, } static int -bin_zformat(char *nam, char **args, Options ops, int func) +bin_zformat(char *nam, char **args, UNUSED(Options ops), UNUSED(int func)) { char opt; @@ -1232,7 +1232,7 @@ rmatch(RParseResult *sm, char *subj, char *var1, char *var2, int comp) */ static int -bin_zregexparse(char *nam, char **args, Options ops, int func) +bin_zregexparse(char *nam, char **args, Options ops, UNUSED(int func)) { int oldextendedglob = opts[EXTENDEDGLOB]; char *var1 = args[0]; @@ -1386,7 +1386,7 @@ add_opt_val(Zoptdesc d, char *arg) } static int -bin_zparseopts(char *nam, char **args, Options ops, int func) +bin_zparseopts(char *nam, char **args, UNUSED(Options ops), UNUSED(int func)) { char *o, *p, *n, **pp, **aval, **ap, *assoc = NULL, **cp, **np; int del = 0, f, extract = 0, keep = 0; @@ -1687,7 +1687,7 @@ static struct builtin bintab[] = { /**/ int -setup_(Module m) +setup_(UNUSED(Module m)) { zstyles = zlstyles = NULL; @@ -1711,7 +1711,7 @@ cleanup_(Module m) /**/ int -finish_(Module m) +finish_(UNUSED(Module m)) { freeallstyles(); |