]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.1034: compiler warning for uninitialized variables v8.2.1034
authorBram Moolenaar <Bram@vim.org>
Sun, 21 Jun 2020 20:17:18 +0000 (22:17 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 21 Jun 2020 20:17:18 +0000 (22:17 +0200)
Problem:    Compiler warning for uninitialized variables.
Solution:   Add initializations. (John Marriott)

src/version.c
src/vim9compile.c

index 283c0c98994ce86d6fea6b518bef779132a33297..367972d2fc9012dea7367960c614afa69c8742ea 100644 (file)
@@ -754,6 +754,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1034,
 /**/
     1033,
 /**/
index 52ca9e219b0cbddf26e79a317ffc027d54f2974b..033a8d9ed92384d05525a4196ee3fb8bf1e51749 100644 (file)
@@ -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;