Patch 8.2.5017
Problem: Gcc 12.1 warns for uninitialized variable.
Solution: Initialize the variable. (closes #10476)
Files: src/evalvars.c
*** ../vim-8.2.5016/src/evalvars.c 2022-05-10 18:11:39.623454291 +0100
--- src/evalvars.c 2022-05-25 17:26:37.567635834 +0100
***************
*** 2023,2029 ****
{
hashtab_T *ht;
hashitem_T *hi;
! char_u *varname;
dict_T *d;
dictitem_T *di;
--- 2023,2029 ----
{
hashtab_T *ht;
hashitem_T *hi;
! char_u *varname = NULL; // init to shut up gcc
dict_T *d;
dictitem_T *di;
*** ../vim-8.2.5016/src/version.c 2022-05-25 15:15:34.739409287 +0100
--- src/version.c 2022-05-25 17:27:50.547528962 +0100
***************
*** 736,737 ****
--- 736,739 ----
{ /* Add new patch number below this line */
+ /**/
+ 5017,
/**/
--
Back up my hard drive? I can't find the reverse switch!
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ 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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/20220525163143.F26611C14D9%40moolenaar.net.