0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.1884: compiler warning for uninitialized variable

Problem:    Compiler warning for uninitialized variable. (John Marriott)
Solution:   Initialize with NULL.
This commit is contained in:
Bram Moolenaar
2020-10-22 12:31:49 +02:00
parent 4ce5fe4c87
commit a1224cb706
3 changed files with 9 additions and 1 deletions

View File

@@ -331,6 +331,7 @@ argcheck_T arg3_insert[] = {arg_list_or_blob, arg_item_of_prev, arg_number};
/*
* Functions that return the return type of a builtin function.
* Note that "argtypes" is NULL if "argcount" is zero.
*/
static type_T *
ret_void(int argcount UNUSED, type_T **argtypes UNUSED)
@@ -1825,6 +1826,11 @@ internal_func_check_arg_types(type_T **types, int idx, int argcount)
return OK;
}
/*
* Call the "f_retfunc" function to obtain the return type of function "idx".
* "argtypes" is the list of argument types or NULL when there are no
* arguments.
*/
type_T *
internal_func_ret_type(int idx, int argcount, type_T **argtypes)
{