0
0
mirror of https://github.com/vim/vim.git synced 2025-09-28 04:24:06 -04:00

patch 8.2.5017: gcc 12.1 warns for uninitialized variable

Problem:    Gcc 12.1 warns for uninitialized variable.
Solution:   Initialize the variable. (closes #10476)
This commit is contained in:
mityu
2022-05-25 17:29:46 +01:00
committed by Bram Moolenaar
parent 2a585c8501
commit 8be36eecdc
2 changed files with 3 additions and 1 deletions

View File

@@ -2023,7 +2023,7 @@ do_unlet(char_u *name, int forceit)
{
hashtab_T *ht;
hashitem_T *hi;
char_u *varname;
char_u *varname = NULL; // init to shut up gcc
dict_T *d;
dictitem_T *di;

View File

@@ -734,6 +734,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
5017,
/**/
5016,
/**/