summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-06-21 22:17:18 +0200
committerBram Moolenaar <Bram@vim.org>2020-06-21 22:17:18 +0200
commit38041da1c263f5840f21e15484d7ccb30999ed62 (patch)
tree36a95b4b96526c672884650b2fe4dd5040429fd8
parent73fef33014dbf21fc59e7e47fb091117868d82fb (diff)
downloadvim-git-8.2.1034.tar.gz
patch 8.2.1034: compiler warning for uninitialized variablesv8.2.1034
Problem: Compiler warning for uninitialized variables. Solution: Add initializations. (John Marriott)
-rw-r--r--src/version.c2
-rw-r--r--src/vim9compile.c4
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
@@ -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
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;