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:
parent
309d899507
commit
2b81d4be32
6 changed files with 9 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue