mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-01 21:51:40 +02:00
37838: use UNUSED() consistently
This commit is contained in:
parent
6b72ff66c0
commit
ca3bc0d95d
29 changed files with 47 additions and 34 deletions
13
ChangeLog
13
ChangeLog
|
@ -1,3 +1,16 @@
|
|||
2016-01-30 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
|
||||
|
||||
* 37838: Src/Builtins/rlimits.c, Src/Builtins/sched.c,
|
||||
Src/Modules/curses.c, Src/Modules/datetime.c, Src/Modules/db_gdbm.c,
|
||||
Src/Modules/files.c, Src/Modules/langinfo.c, Src/Modules/mapfile.c,
|
||||
Src/Modules/mathfunc.c, Src/Modules/newuser.c, Src/Modules/parameter.c,
|
||||
Src/Modules/pcre.c, Src/Modules/regex.c, Src/Modules/socket.c,
|
||||
Src/Modules/stat.c, Src/Modules/system.c, Src/Modules/tcp.c,
|
||||
Src/Modules/termcap.c, Src/Modules/terminfo.c, Src/Modules/zpty.c,
|
||||
Src/Modules/zselect.c, Src/Modules/zutil.c, Src/Zle/compctl.c,
|
||||
Src/Zle/computil.c, Src/Zle/zle_utils.c, Src/Zle/zle_word.c,
|
||||
Src/hashtable.c, Src/hist.c: use UNUSED() consistently
|
||||
|
||||
2016-01-29 Daniel Shahaf <d.s@daniel.shahaf.name>
|
||||
|
||||
* 37833: README: Document 37804 in README.
|
||||
|
|
|
@ -1037,7 +1037,7 @@ enables_(Module m, int **enables)
|
|||
|
||||
/**/
|
||||
int
|
||||
boot_(Module m)
|
||||
boot_(UNUSED(Module m))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -411,7 +411,7 @@ enables_(Module m, int **enables)
|
|||
|
||||
/**/
|
||||
int
|
||||
boot_(Module m)
|
||||
boot_(UNUSED(Module m))
|
||||
{
|
||||
addprepromptfn(&checksched);
|
||||
return 0;
|
||||
|
|
|
@ -299,7 +299,7 @@ zcurses_free_window(ZCWin w)
|
|||
}
|
||||
|
||||
static struct zcurses_namenumberpair *
|
||||
zcurses_attrget(WINDOW *w, char *attr)
|
||||
zcurses_attrget(UNUSED(WINDOW *w), char *attr)
|
||||
{
|
||||
struct zcurses_namenumberpair *zca;
|
||||
|
||||
|
@ -419,7 +419,7 @@ freecolorpairnode(HashNode hn)
|
|||
*************/
|
||||
|
||||
static int
|
||||
zccmd_init(const char *nam, char **args)
|
||||
zccmd_init(UNUSED(const char *nam), UNUSED(char **args))
|
||||
{
|
||||
LinkNode stdscr_win = zcurses_getwindowbyname("stdscr");
|
||||
|
||||
|
@ -808,7 +808,7 @@ zccmd_border(const char *nam, char **args)
|
|||
|
||||
|
||||
static int
|
||||
zccmd_endwin(const char *nam, char **args)
|
||||
zccmd_endwin(UNUSED(const char *nam), UNUSED(char **args))
|
||||
{
|
||||
LinkNode stdscr_win = zcurses_getwindowbyname("stdscr");
|
||||
|
||||
|
@ -1496,7 +1496,7 @@ zccmd_touch(const char *nam, char **args)
|
|||
|
||||
/**/
|
||||
static int
|
||||
bin_zcurses(char *nam, char **args, Options ops, UNUSED(int func))
|
||||
bin_zcurses(char *nam, char **args, UNUSED(Options ops), UNUSED(int func))
|
||||
{
|
||||
char **saargs;
|
||||
struct zcurses_subcommand *zcsc;
|
||||
|
@ -1693,7 +1693,7 @@ enables_(Module m, int **enables)
|
|||
|
||||
/**/
|
||||
int
|
||||
boot_(Module m)
|
||||
boot_(UNUSED(Module m))
|
||||
{
|
||||
zcurses_windows = znewlinklist();
|
||||
|
||||
|
|
|
@ -292,7 +292,7 @@ enables_(Module m, int **enables)
|
|||
|
||||
/**/
|
||||
int
|
||||
boot_(Module m)
|
||||
boot_(UNUSED(Module m))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -390,7 +390,7 @@ boot_(UNUSED(Module m))
|
|||
|
||||
/**/
|
||||
int
|
||||
cleanup_(UNUSED(Module m))
|
||||
cleanup_(Module m)
|
||||
{
|
||||
return setfeatureenables(m, &module_features, NULL);
|
||||
}
|
||||
|
|
|
@ -805,7 +805,7 @@ enables_(Module m, int **enables)
|
|||
|
||||
/**/
|
||||
int
|
||||
boot_(Module m)
|
||||
boot_(UNUSED(Module m))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -498,7 +498,7 @@ boot_(UNUSED(Module m))
|
|||
|
||||
/**/
|
||||
int
|
||||
cleanup_(UNUSED(Module m))
|
||||
cleanup_(Module m)
|
||||
{
|
||||
return setfeatureenables(m, &module_features, NULL);
|
||||
}
|
||||
|
|
|
@ -306,7 +306,7 @@ boot_(UNUSED(Module m))
|
|||
|
||||
/**/
|
||||
int
|
||||
cleanup_(UNUSED(Module m))
|
||||
cleanup_(Module m)
|
||||
{
|
||||
return setfeatureenables(m, &module_features, NULL);
|
||||
}
|
||||
|
|
|
@ -599,7 +599,7 @@ enables_(Module m, int **enables)
|
|||
|
||||
/**/
|
||||
int
|
||||
boot_(Module m)
|
||||
boot_(UNUSED(Module m))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -41,14 +41,14 @@ setup_(UNUSED(Module m))
|
|||
|
||||
/**/
|
||||
int
|
||||
features_(Module m, char ***features)
|
||||
features_(UNUSED(Module m), UNUSED(char ***features))
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
/**/
|
||||
int
|
||||
enables_(Module m, int **enables)
|
||||
enables_(UNUSED(Module m), UNUSED(int **enables))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -2190,7 +2190,7 @@ enables_(Module m, int **enables)
|
|||
|
||||
/**/
|
||||
int
|
||||
boot_(Module m)
|
||||
boot_(UNUSED(Module m))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -479,7 +479,7 @@ enables_(Module m, int **enables)
|
|||
|
||||
/**/
|
||||
int
|
||||
boot_(Module m)
|
||||
boot_(UNUSED(Module m))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -248,7 +248,7 @@ enables_(Module m, int **enables)
|
|||
|
||||
/**/
|
||||
int
|
||||
boot_(Module m)
|
||||
boot_(UNUSED(Module m))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -310,7 +310,7 @@ enables_(Module m, int **enables)
|
|||
|
||||
/**/
|
||||
int
|
||||
boot_(Module m)
|
||||
boot_(UNUSED(Module m))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -659,7 +659,7 @@ enables_(Module m, int **enables)
|
|||
|
||||
/**/
|
||||
int
|
||||
boot_(Module m)
|
||||
boot_(UNUSED(Module m))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -439,7 +439,7 @@ bin_sysseek(char *nam, char **args, Options ops, UNUSED(int func))
|
|||
|
||||
/**/
|
||||
static mnumber
|
||||
math_systell(UNUSED(char *name), int argc, mnumber *argv, UNUSED(int id))
|
||||
math_systell(UNUSED(char *name), UNUSED(int argc), mnumber *argv, UNUSED(int id))
|
||||
{
|
||||
int fd = (argv->type == MN_INTEGER) ? argv->u.l : (int)argv->u.d;
|
||||
mnumber ret;
|
||||
|
@ -834,7 +834,7 @@ enables_(Module m, int **enables)
|
|||
|
||||
/**/
|
||||
int
|
||||
boot_(Module m)
|
||||
boot_(UNUSED(Module m))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -732,7 +732,7 @@ enables_(Module m, int **enables)
|
|||
|
||||
/**/
|
||||
int
|
||||
boot_(Module m)
|
||||
boot_(UNUSED(Module m))
|
||||
{
|
||||
ztcp_sessions = znewlinklist();
|
||||
return 0;
|
||||
|
|
|
@ -342,7 +342,7 @@ enables_(Module m, int **enables)
|
|||
|
||||
/**/
|
||||
int
|
||||
boot_(Module m)
|
||||
boot_(UNUSED(Module m))
|
||||
{
|
||||
#ifdef HAVE_TGETENT
|
||||
# ifdef HAVE_SETUPTERM
|
||||
|
|
|
@ -335,7 +335,7 @@ enables_(Module m, int **enables)
|
|||
|
||||
/**/
|
||||
int
|
||||
boot_(Module m)
|
||||
boot_(UNUSED(Module m))
|
||||
{
|
||||
#ifdef USE_TERMINFO_MODULE
|
||||
# ifdef HAVE_SETUPTERM
|
||||
|
|
|
@ -891,7 +891,7 @@ enables_(Module m, int **enables)
|
|||
|
||||
/**/
|
||||
int
|
||||
boot_(Module m)
|
||||
boot_(UNUSED(Module m))
|
||||
{
|
||||
ptycmds = NULL;
|
||||
|
||||
|
|
|
@ -307,7 +307,7 @@ enables_(Module m, int **enables)
|
|||
|
||||
/**/
|
||||
int
|
||||
boot_(Module m)
|
||||
boot_(UNUSED(Module m))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -1995,7 +1995,7 @@ enables_(Module m, int **enables)
|
|||
|
||||
/**/
|
||||
int
|
||||
boot_(Module m)
|
||||
boot_(UNUSED(Module m))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -3992,7 +3992,7 @@ enables_(Module m, int **enables)
|
|||
|
||||
/**/
|
||||
int
|
||||
boot_(Module m)
|
||||
boot_(UNUSED(Module m))
|
||||
{
|
||||
addhookfunc("compctl_make", (Hookfn) ccmakehookfn);
|
||||
addhookfunc("compctl_cleanup", (Hookfn) cccleanuphookfn);
|
||||
|
|
|
@ -4994,7 +4994,7 @@ enables_(Module m, int **enables)
|
|||
|
||||
/**/
|
||||
int
|
||||
boot_(Module m)
|
||||
boot_(UNUSED(Module m))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -1678,7 +1678,7 @@ viundochange(char **args)
|
|||
|
||||
/**/
|
||||
int
|
||||
splitundo(char **args)
|
||||
splitundo(UNUSED(char **args))
|
||||
{
|
||||
if (vistartchange >= 0) {
|
||||
mergeundo();
|
||||
|
|
|
@ -153,7 +153,7 @@ emacsforwardword(char **args)
|
|||
|
||||
/**/
|
||||
int
|
||||
viforwardblankwordend(UNUSED(char **args))
|
||||
viforwardblankwordend(char **args)
|
||||
{
|
||||
int n = zmult;
|
||||
|
||||
|
|
|
@ -558,7 +558,7 @@ printhashtabinfo(HashTable ht)
|
|||
|
||||
/**/
|
||||
int
|
||||
bin_hashinfo(char *nam, char **args, Options ops, int func)
|
||||
bin_hashinfo(UNUSED(char *nam), UNUSED(char **args), UNUSED(Options ops), UNUSED(int func))
|
||||
{
|
||||
HashTable ht;
|
||||
|
||||
|
|
|
@ -468,7 +468,7 @@ herrflush(void)
|
|||
|
||||
/**/
|
||||
static int
|
||||
getsubsargs(char *subline, int *gbalp, int *cflagp)
|
||||
getsubsargs(UNUSED(char *subline), int *gbalp, int *cflagp)
|
||||
{
|
||||
int del, follow;
|
||||
char *ptr1, *ptr2;
|
||||
|
|
Loading…
Reference in a new issue