Patch 8.2.1884 Problem: Compiler warning for uninitialized variable. (John Marriott) Solution: Initialize with NULL. Files: src/vim9compile.c, src/evalfunc.c
*** ../vim-8.2.1883/src/vim9compile.c 2020-10-21 20:58:47.710889972 +0200 --- src/vim9compile.c 2020-10-21 21:11:38.076679757 +0200 *************** *** 1460,1466 **** isn_T *isn; garray_T *stack = &cctx->ctx_type_stack; int argoff; ! type_T **argtypes; RETURN_OK_IF_SKIP(cctx); argoff = check_internal_func(func_idx, argcount); --- 1460,1466 ---- isn_T *isn; garray_T *stack = &cctx->ctx_type_stack; int argoff; ! type_T **argtypes = NULL; RETURN_OK_IF_SKIP(cctx); argoff = check_internal_func(func_idx, argcount); *** ../vim-8.2.1883/src/evalfunc.c 2020-10-21 16:42:18.513821908 +0200 --- src/evalfunc.c 2020-10-21 21:14:07.876270624 +0200 *************** *** 331,336 **** --- 331,337 ---- /* * 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,1830 **** --- 1826,1836 ---- 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) { *** ../vim-8.2.1883/src/version.c 2020-10-21 21:01:56.070323838 +0200 --- src/version.c 2020-10-22 12:31:35.201132228 +0200 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 1884, /**/ -- hundred-and-one symptoms of being an internet addict: 106. When told to "go to your room" you inform your parents that you can't...because you were kicked out and banned. /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/202010221032.09MAWm7P307846%40masaka.moolenaar.net.