vim-patch:8.1.1745: compiler warning for unused argument

Problem:    Compiler warning for unused argument.
Solution:   Add UNUSED.  Change comments to new style.
1f164b1968
This commit is contained in:
Jan Edmund Lazo
2020-03-21 11:04:09 -04:00
parent dfb8dc8b45
commit 22eb3c9e49
3 changed files with 46 additions and 44 deletions

View File

@@ -5648,8 +5648,11 @@ static void f_matchadd(typval_T *argvars, typval_T *rettv, FunPtr fptr)
{
char grpbuf[NUMBUFLEN];
char patbuf[NUMBUFLEN];
// group
const char *const grp = tv_get_string_buf_chk(&argvars[0], grpbuf);
// pattern
const char *const pat = tv_get_string_buf_chk(&argvars[1], patbuf);
// default priority
int prio = 10;
int id = -1;
bool error = false;