0
0
mirror of https://github.com/vim/vim.git synced 2025-09-02 21:13:50 -04:00

patch 8.2.4004: old compiler complains about struct init with variable

Problem:    Old compiler complains about struct init with variable.
Solution:   Set the struct member later. (John Marriott)
This commit is contained in:
Bram Moolenaar 2022-01-04 20:05:04 +00:00
parent d88be5be80
commit 548911ee14
2 changed files with 4 additions and 2 deletions

View File

@ -524,9 +524,9 @@ arg_map_func(type_T *type, type_T *decl_type UNUSED, argcontext_T *context)
expected = &t_number;
if (expected != NULL)
{
type_T t_func_exp = {VAR_FUNC, -1, 0, TTFLAG_STATIC,
expected, NULL};
type_T t_func_exp = {VAR_FUNC, -1, 0, TTFLAG_STATIC, NULL, NULL};
t_func_exp.tt_member = expected;
return check_arg_type(&t_func_exp, type, context);
}
}

View File

@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
4004,
/**/
4003,
/**/