summaryrefslogtreecommitdiff
path: root/src/evalfunc.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-10-22 12:31:49 +0200
committerBram Moolenaar <Bram@vim.org>2020-10-22 12:31:49 +0200
commita1224cb706f4aefbf85a524cdcfa804570022136 (patch)
treeb54e7e28a2aaad55de7355d9293e425896787d95 /src/evalfunc.c
parent4ce5fe4c87820c7d22964d6e91d7b07e96640e6f (diff)
downloadvim-git-a1224cb706f4aefbf85a524cdcfa804570022136.tar.gz
patch 8.2.1884: compiler warning for uninitialized variablev8.2.1884
Problem: Compiler warning for uninitialized variable. (John Marriott) Solution: Initialize with NULL.
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r--src/evalfunc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c
index 41133091d..72dc557f9 100644
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -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)
{