Mercurial > vim
changeset 22671:ad54acb1bf2c v8.2.1884
patch 8.2.1884: compiler warning for uninitialized variable
Commit: https://github.com/vim/vim/commit/a1224cb706f4aefbf85a524cdcfa804570022136
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Oct 22 12:31:49 2020 +0200
patch 8.2.1884: compiler warning for uninitialized variable
Problem: Compiler warning for uninitialized variable. (John Marriott)
Solution: Initialize with NULL.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 22 Oct 2020 12:45:04 +0200 |
parents | 1ec5fdb8244e |
children | 677af55f356d |
files | src/evalfunc.c src/version.c src/vim9compile.c |
diffstat | 3 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -331,6 +331,7 @@ argcheck_T arg3_insert[] = {arg_list_or_ /* * 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 **t 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) {