# HG changeset patch # User Bram Moolenaar # Date 1653496202 -7200 # Node ID 84a6794a93208c28d4fd35b32c844f7a251104f2 # Parent 65b740512fbfe4ebc2968a608830e1b7a7c50537 patch 8.2.5017: gcc 12.1 warns for uninitialized variable Commit: https://github.com/vim/vim/commit/8be36eecdc6728021f9c384c2305f114e671ec32 Author: mityu Date: Wed May 25 17:29:46 2022 +0100 patch 8.2.5017: gcc 12.1 warns for uninitialized variable Problem: Gcc 12.1 warns for uninitialized variable. Solution: Initialize the variable. (closes https://github.com/vim/vim/issues/10476) diff --git a/src/evalvars.c b/src/evalvars.c --- a/src/evalvars.c +++ b/src/evalvars.c @@ -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; diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -735,6 +735,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 5017, +/**/ 5016, /**/ 5015,