From dafef51b1cbe8aa836c4cfa52623f775bd85a190 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 21 May 2022 21:55:55 +0100 Subject: [PATCH] patch 8.2.4995: still a compiler warning for possibly uninitialized variable Problem: Still a compiler warning for possibly uninitialized variable. (Tony Mechelynck) Solution: Initialize variables. --- src/version.c | 2 ++ src/vim9execute.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/version.c b/src/version.c index 6ea31dd3d9..1a39c06255 100644 --- a/src/version.c +++ b/src/version.c @@ -734,6 +734,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 4995, /**/ 4994, /**/ diff --git a/src/vim9execute.c b/src/vim9execute.c index eb07a38c30..b191dc9983 100644 --- a/src/vim9execute.c +++ b/src/vim9execute.c @@ -6279,8 +6279,8 @@ ex_disassemble(exarg_T *eap) char_u *arg = eap->arg; ufunc_T *ufunc; dfunc_T *dfunc; - isn_T *instr; - int instr_count; + isn_T *instr = NULL; // init to shut up gcc warning + int instr_count = 0; // init to shut up gcc warning compiletype_T compile_type = CT_NONE; ufunc = find_func_by_name(arg, &compile_type);