patch 9.0.2175: Compiler warning for uninitialized var Commit: https://github.com/vim/vim/commit/38ce1a7ac8da8ac0a8b58a1087f56e62e6fdfaa4 Author: Yegappan Lakshmanan <yegap...@yahoo.com> Date: Mon Dec 18 08:58:29 2023 +0100
patch 9.0.2175: Compiler warning for uninitialized var Problem: Compiler warning for uninitialized var Solution: initialize variable to NULL closes: #13711 Signed-off-by: Yegappan Lakshmanan <yegap...@yahoo.com> Signed-off-by: Christian Brabandt <c...@256bit.org> diff --git a/src/version.c b/src/version.c index 50660311d..78fb3e01f 100644 --- a/src/version.c +++ b/src/version.c @@ -704,6 +704,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2175, /**/ 2174, /**/ diff --git a/src/vim9cmds.c b/src/vim9cmds.c index a276d5323..ad245b9c8 100644 --- a/src/vim9cmds.c +++ b/src/vim9cmds.c @@ -2000,7 +2000,7 @@ compile_defer(char_u *arg_start, cctx_T *cctx) char_u *arg = arg_start; int argcount = 0; int defer_var_idx; - type_T *type; + type_T *type = NULL; int func_idx; // Get a funcref for the function name. -- -- 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/E1rF8mF-0018AP-79%40256bit.org.