mirror of
https://github.com/vim/vim.git
synced 2025-09-05 21:43:39 -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:
parent
d88be5be80
commit
548911ee14
@ -524,9 +524,9 @@ arg_map_func(type_T *type, type_T *decl_type UNUSED, argcontext_T *context)
|
|||||||
expected = &t_number;
|
expected = &t_number;
|
||||||
if (expected != NULL)
|
if (expected != NULL)
|
||||||
{
|
{
|
||||||
type_T t_func_exp = {VAR_FUNC, -1, 0, TTFLAG_STATIC,
|
type_T t_func_exp = {VAR_FUNC, -1, 0, TTFLAG_STATIC, NULL, NULL};
|
||||||
expected, NULL};
|
|
||||||
|
|
||||||
|
t_func_exp.tt_member = expected;
|
||||||
return check_arg_type(&t_func_exp, type, context);
|
return check_arg_type(&t_func_exp, type, context);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
4004,
|
||||||
/**/
|
/**/
|
||||||
4003,
|
4003,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user