1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-06-20 10:08:02 +02:00

unposted: add/remove UNUSED() for some function parameters

This commit is contained in:
Jun-ichi Takimoto 2021-09-08 11:58:29 +09:00
parent 309d899507
commit 2b81d4be32
6 changed files with 9 additions and 5 deletions

View file

@ -1,5 +1,9 @@
2021-09-08 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
* unposted: Src/Modules/db_gdbm.c, Src/Modules/files.c,
Src/Modules/nearcolor.c, Src/Zle/complete.c, Src/builtin.c:
add/remove UNUSED() for some funtion parameters
* unposted: Src/input.c: add 'static' to shinsavestack
* 49377: Src/Zle/zle_keymap.c, Test/X03zlebindkey.ztst: fix

View file

@ -233,7 +233,7 @@ bin_zuntie(char *nam, char **args, Options ops, UNUSED(int func))
/**/
static int
bin_zgdbmpath(char *nam, char **args, Options ops, UNUSED(int func))
bin_zgdbmpath(char *nam, char **args, UNUSED(Options ops), UNUSED(int func))
{
Param pm;
char *pmname;

View file

@ -652,7 +652,7 @@ chmod_dochmod(char *arg, char *rp, UNUSED(struct stat const *sp), void *magic)
/**/
static int
bin_chmod(char *nam, char **args, Options ops, int func)
bin_chmod(char *nam, char **args, Options ops, UNUSED(int func))
{
struct chmodmagic chm;
char *str = args[0], *ptr;

View file

@ -188,7 +188,7 @@ enables_(Module m, int **enables)
/**/
int
boot_(Module m)
boot_(UNUSED(Module m))
{
addhookfunc("get_color_attr", (Hookfn) getnearestcolor);
return 0;

View file

@ -1343,7 +1343,7 @@ get_compstate(Param pm)
/**/
static void
set_compstate(UNUSED(Param pm), HashTable ht)
set_compstate(Param pm, HashTable ht)
{
struct compparam *cp;
Param *pp;

View file

@ -2024,7 +2024,7 @@ typeset_setwidth(const char * name, Param pm, Options ops, int on, int always)
/**/
static Param
typeset_single(char *cname, char *pname, Param pm, UNUSED(int func),
typeset_single(char *cname, char *pname, Param pm, int func,
int on, int off, int roff, Asgment asg, Param altpm,
Options ops, int joinchar)
{