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:
@@ -2023,7 +2023,7 @@ do_unlet(char_u *name, int forceit)
|
|||||||
{
|
{
|
||||||
hashtab_T *ht;
|
hashtab_T *ht;
|
||||||
hashitem_T *hi;
|
hashitem_T *hi;
|
||||||
char_u *varname;
|
char_u *varname = NULL; // init to shut up gcc
|
||||||
dict_T *d;
|
dict_T *d;
|
||||||
dictitem_T *di;
|
dictitem_T *di;
|
||||||
|
|
||||||
|
@@ -734,6 +734,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
5017,
|
||||||
/**/
|
/**/
|
||||||
5016,
|
5016,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user