1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-05 23:11:11 +02:00

37838: use UNUSED() consistently

This commit is contained in:
Jun-ichi Takimoto 2016-01-30 00:25:53 +09:00
parent 6b72ff66c0
commit ca3bc0d95d
29 changed files with 47 additions and 34 deletions

View file

@ -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> 2016-01-29 Daniel Shahaf <d.s@daniel.shahaf.name>
* 37833: README: Document 37804 in README. * 37833: README: Document 37804 in README.

View file

@ -1037,7 +1037,7 @@ enables_(Module m, int **enables)
/**/ /**/
int int
boot_(Module m) boot_(UNUSED(Module m))
{ {
return 0; return 0;
} }

View file

@ -411,7 +411,7 @@ enables_(Module m, int **enables)
/**/ /**/
int int
boot_(Module m) boot_(UNUSED(Module m))
{ {
addprepromptfn(&checksched); addprepromptfn(&checksched);
return 0; return 0;

View file

@ -299,7 +299,7 @@ zcurses_free_window(ZCWin w)
} }
static struct zcurses_namenumberpair * static struct zcurses_namenumberpair *
zcurses_attrget(WINDOW *w, char *attr) zcurses_attrget(UNUSED(WINDOW *w), char *attr)
{ {
struct zcurses_namenumberpair *zca; struct zcurses_namenumberpair *zca;
@ -419,7 +419,7 @@ freecolorpairnode(HashNode hn)
*************/ *************/
static int static int
zccmd_init(const char *nam, char **args) zccmd_init(UNUSED(const char *nam), UNUSED(char **args))
{ {
LinkNode stdscr_win = zcurses_getwindowbyname("stdscr"); LinkNode stdscr_win = zcurses_getwindowbyname("stdscr");
@ -808,7 +808,7 @@ zccmd_border(const char *nam, char **args)
static int static int
zccmd_endwin(const char *nam, char **args) zccmd_endwin(UNUSED(const char *nam), UNUSED(char **args))
{ {
LinkNode stdscr_win = zcurses_getwindowbyname("stdscr"); LinkNode stdscr_win = zcurses_getwindowbyname("stdscr");
@ -1496,7 +1496,7 @@ zccmd_touch(const char *nam, char **args)
/**/ /**/
static int 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; char **saargs;
struct zcurses_subcommand *zcsc; struct zcurses_subcommand *zcsc;
@ -1693,7 +1693,7 @@ enables_(Module m, int **enables)
/**/ /**/
int int
boot_(Module m) boot_(UNUSED(Module m))
{ {
zcurses_windows = znewlinklist(); zcurses_windows = znewlinklist();

View file

@ -292,7 +292,7 @@ enables_(Module m, int **enables)
/**/ /**/
int int
boot_(Module m) boot_(UNUSED(Module m))
{ {
return 0; return 0;
} }

View file

@ -390,7 +390,7 @@ boot_(UNUSED(Module m))
/**/ /**/
int int
cleanup_(UNUSED(Module m)) cleanup_(Module m)
{ {
return setfeatureenables(m, &module_features, NULL); return setfeatureenables(m, &module_features, NULL);
} }

View file

@ -805,7 +805,7 @@ enables_(Module m, int **enables)
/**/ /**/
int int
boot_(Module m) boot_(UNUSED(Module m))
{ {
return 0; return 0;
} }

View file

@ -498,7 +498,7 @@ boot_(UNUSED(Module m))
/**/ /**/
int int
cleanup_(UNUSED(Module m)) cleanup_(Module m)
{ {
return setfeatureenables(m, &module_features, NULL); return setfeatureenables(m, &module_features, NULL);
} }

View file

@ -306,7 +306,7 @@ boot_(UNUSED(Module m))
/**/ /**/
int int
cleanup_(UNUSED(Module m)) cleanup_(Module m)
{ {
return setfeatureenables(m, &module_features, NULL); return setfeatureenables(m, &module_features, NULL);
} }

View file

@ -599,7 +599,7 @@ enables_(Module m, int **enables)
/**/ /**/
int int
boot_(Module m) boot_(UNUSED(Module m))
{ {
return 0; return 0;
} }

View file

@ -41,14 +41,14 @@ setup_(UNUSED(Module m))
/**/ /**/
int int
features_(Module m, char ***features) features_(UNUSED(Module m), UNUSED(char ***features))
{ {
return 1; return 1;
} }
/**/ /**/
int int
enables_(Module m, int **enables) enables_(UNUSED(Module m), UNUSED(int **enables))
{ {
return 0; return 0;
} }

View file

@ -2190,7 +2190,7 @@ enables_(Module m, int **enables)
/**/ /**/
int int
boot_(Module m) boot_(UNUSED(Module m))
{ {
return 0; return 0;
} }

View file

@ -479,7 +479,7 @@ enables_(Module m, int **enables)
/**/ /**/
int int
boot_(Module m) boot_(UNUSED(Module m))
{ {
return 0; return 0;
} }

View file

@ -248,7 +248,7 @@ enables_(Module m, int **enables)
/**/ /**/
int int
boot_(Module m) boot_(UNUSED(Module m))
{ {
return 0; return 0;
} }

View file

@ -310,7 +310,7 @@ enables_(Module m, int **enables)
/**/ /**/
int int
boot_(Module m) boot_(UNUSED(Module m))
{ {
return 0; return 0;
} }

View file

@ -659,7 +659,7 @@ enables_(Module m, int **enables)
/**/ /**/
int int
boot_(Module m) boot_(UNUSED(Module m))
{ {
return 0; return 0;
} }

View file

@ -439,7 +439,7 @@ bin_sysseek(char *nam, char **args, Options ops, UNUSED(int func))
/**/ /**/
static mnumber 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; int fd = (argv->type == MN_INTEGER) ? argv->u.l : (int)argv->u.d;
mnumber ret; mnumber ret;
@ -834,7 +834,7 @@ enables_(Module m, int **enables)
/**/ /**/
int int
boot_(Module m) boot_(UNUSED(Module m))
{ {
return 0; return 0;
} }

View file

@ -732,7 +732,7 @@ enables_(Module m, int **enables)
/**/ /**/
int int
boot_(Module m) boot_(UNUSED(Module m))
{ {
ztcp_sessions = znewlinklist(); ztcp_sessions = znewlinklist();
return 0; return 0;

View file

@ -342,7 +342,7 @@ enables_(Module m, int **enables)
/**/ /**/
int int
boot_(Module m) boot_(UNUSED(Module m))
{ {
#ifdef HAVE_TGETENT #ifdef HAVE_TGETENT
# ifdef HAVE_SETUPTERM # ifdef HAVE_SETUPTERM

View file

@ -335,7 +335,7 @@ enables_(Module m, int **enables)
/**/ /**/
int int
boot_(Module m) boot_(UNUSED(Module m))
{ {
#ifdef USE_TERMINFO_MODULE #ifdef USE_TERMINFO_MODULE
# ifdef HAVE_SETUPTERM # ifdef HAVE_SETUPTERM

View file

@ -891,7 +891,7 @@ enables_(Module m, int **enables)
/**/ /**/
int int
boot_(Module m) boot_(UNUSED(Module m))
{ {
ptycmds = NULL; ptycmds = NULL;

View file

@ -307,7 +307,7 @@ enables_(Module m, int **enables)
/**/ /**/
int int
boot_(Module m) boot_(UNUSED(Module m))
{ {
return 0; return 0;
} }

View file

@ -1995,7 +1995,7 @@ enables_(Module m, int **enables)
/**/ /**/
int int
boot_(Module m) boot_(UNUSED(Module m))
{ {
return 0; return 0;
} }

View file

@ -3992,7 +3992,7 @@ enables_(Module m, int **enables)
/**/ /**/
int int
boot_(Module m) boot_(UNUSED(Module m))
{ {
addhookfunc("compctl_make", (Hookfn) ccmakehookfn); addhookfunc("compctl_make", (Hookfn) ccmakehookfn);
addhookfunc("compctl_cleanup", (Hookfn) cccleanuphookfn); addhookfunc("compctl_cleanup", (Hookfn) cccleanuphookfn);

View file

@ -4994,7 +4994,7 @@ enables_(Module m, int **enables)
/**/ /**/
int int
boot_(Module m) boot_(UNUSED(Module m))
{ {
return 0; return 0;
} }

View file

@ -1678,7 +1678,7 @@ viundochange(char **args)
/**/ /**/
int int
splitundo(char **args) splitundo(UNUSED(char **args))
{ {
if (vistartchange >= 0) { if (vistartchange >= 0) {
mergeundo(); mergeundo();

View file

@ -153,7 +153,7 @@ emacsforwardword(char **args)
/**/ /**/
int int
viforwardblankwordend(UNUSED(char **args)) viforwardblankwordend(char **args)
{ {
int n = zmult; int n = zmult;

View file

@ -558,7 +558,7 @@ printhashtabinfo(HashTable ht)
/**/ /**/
int 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; HashTable ht;

View file

@ -468,7 +468,7 @@ herrflush(void)
/**/ /**/
static int static int
getsubsargs(char *subline, int *gbalp, int *cflagp) getsubsargs(UNUSED(char *subline), int *gbalp, int *cflagp)
{ {
int del, follow; int del, follow;
char *ptr1, *ptr2; char *ptr1, *ptr2;