about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2021-09-08 11:58:29 +0900
committerJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2021-09-08 11:58:29 +0900
commit2b81d4be3232fced220be1cf9c80c087d91d88d6 (patch)
tree2ca40b802ef7ccb099ece1111594b63a491200d0
parent309d899507adc62de5a6c37c32386898b44895fd (diff)
downloadzsh-2b81d4be3232fced220be1cf9c80c087d91d88d6.tar.gz
zsh-2b81d4be3232fced220be1cf9c80c087d91d88d6.tar.xz
zsh-2b81d4be3232fced220be1cf9c80c087d91d88d6.zip
unposted: add/remove UNUSED() for some function parameters
-rw-r--r--ChangeLog4
-rw-r--r--Src/Modules/db_gdbm.c2
-rw-r--r--Src/Modules/files.c2
-rw-r--r--Src/Modules/nearcolor.c2
-rw-r--r--Src/Zle/complete.c2
-rw-r--r--Src/builtin.c2
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  <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
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)
 {