From 38041da1c263f5840f21e15484d7ccb30999ed62 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 21 Jun 2020 22:17:18 +0200 Subject: patch 8.2.1034: compiler warning for uninitialized variables Problem: Compiler warning for uninitialized variables. Solution: Add initializations. (John Marriott) --- src/version.c | 2 ++ src/vim9compile.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/version.c b/src/version.c index 283c0c989..367972d2f 100644 --- a/src/version.c +++ b/src/version.c @@ -754,6 +754,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1034, /**/ 1033, /**/ diff --git a/src/vim9compile.c b/src/vim9compile.c index 52ca9e219..033a8d9ed 100644 --- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -4357,9 +4357,9 @@ compile_expr1(char_u **arg, cctx_T *cctx, ppconst_T *ppconst) garray_T *instr = &cctx->ctx_instr; garray_T *stack = &cctx->ctx_type_stack; int alt_idx = instr->ga_len; - int end_idx; + int end_idx = 0; isn_T *isn; - type_T *type1; + type_T *type1 = NULL; type_T *type2; int has_const_expr = FALSE; int const_value = FALSE; -- cgit v1.2.1