# HG changeset patch # User Bram Moolenaar # Date 1592771403 -7200 # Node ID 0ee7de260208c98b382080443d34eac09f49b13f # Parent 59f93c2d25514d2274af8bc03e5a64493a7f8f63 patch 8.2.1034: compiler warning for uninitialized variables Commit: https://github.com/vim/vim/commit/38041da1c263f5840f21e15484d7ccb30999ed62 Author: Bram Moolenaar Date: Sun Jun 21 22:17:18 2020 +0200 patch 8.2.1034: compiler warning for uninitialized variables Problem: Compiler warning for uninitialized variables. Solution: Add initializations. (John Marriott) diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -755,6 +755,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1034, +/**/ 1033, /**/ 1032, diff --git a/src/vim9compile.c b/src/vim9compile.c --- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -4357,9 +4357,9 @@ compile_expr1(char_u **arg, cctx_T *cct 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;