From 2b81d4be3232fced220be1cf9c80c087d91d88d6 Mon Sep 17 00:00:00 2001 From: Jun-ichi Takimoto Date: Wed, 8 Sep 2021 11:58:29 +0900 Subject: unposted: add/remove UNUSED() for some function parameters --- ChangeLog | 4 ++++ Src/Modules/db_gdbm.c | 2 +- Src/Modules/files.c | 2 +- Src/Modules/nearcolor.c | 2 +- Src/Zle/complete.c | 2 +- Src/builtin.c | 2 +- 6 files changed, 9 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index fe9a3b4ee..6f4646287 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2021-09-08 Jun-ichi Takimoto + * 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 diff --git a/Src/Modules/db_gdbm.c b/Src/Modules/db_gdbm.c index 84fdfa905..7e11ec939 100644 --- a/Src/Modules/db_gdbm.c +++ b/Src/Modules/db_gdbm.c @@ -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; diff --git a/Src/Modules/files.c b/Src/Modules/files.c index d991f69d7..bf0e8f8a8 100644 --- a/Src/Modules/files.c +++ b/Src/Modules/files.c @@ -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; diff --git a/Src/Modules/nearcolor.c b/Src/Modules/nearcolor.c index b49ee9afb..d50a6bb44 100644 --- a/Src/Modules/nearcolor.c +++ b/Src/Modules/nearcolor.c @@ -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; diff --git a/Src/Zle/complete.c b/Src/Zle/complete.c index 7beb6d847..71d114de9 100644 --- a/Src/Zle/complete.c +++ b/Src/Zle/complete.c @@ -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; diff --git a/Src/builtin.c b/Src/builtin.c index d7d2ea297..89bcd98db 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -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) { -- cgit 1.4.1