1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-11-15 23:11:26 +01: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

@ -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;