vim-patch:9.0.0412: compiler warning for unused argument

Problem:    Compiler warning for unused argument.
Solution:   Add UNUSED.
e5a420fb33
This commit is contained in:
zeertzjq 2022-09-08 08:52:45 +08:00
parent 80a566b55f
commit 06f9da547c

View File

@ -288,8 +288,8 @@ unsigned int win_linetabsize(win_T *wp, linenr_T lnum, char_u *line, colnr_T len
///
/// "line" is the start of the line, "ptr" is the first relevant character.
/// When "lnum" is zero do not use text properties that insert text.
void init_chartabsize_arg(chartabsize_T *cts, win_T *wp, linenr_T lnum, colnr_T col, char *line,
char *ptr)
void init_chartabsize_arg(chartabsize_T *cts, win_T *wp, linenr_T lnum FUNC_ATTR_UNUSED,
colnr_T col, char *line, char *ptr)
{
cts->cts_win = wp;
cts->cts_vcol = col;