Skip to content

Commit 38041da

Browse files
committed
patch 8.2.1034: compiler warning for uninitialized variables
Problem: Compiler warning for uninitialized variables. Solution: Add initializations. (John Marriott)
1 parent 73fef33 commit 38041da

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -754,6 +754,8 @@ static char *(features[]) =
754754

755755
static int included_patches[] =
756756
{ /* Add new patch number below this line */
757+
/**/
758+
1034,
757759
/**/
758760
1033,
759761
/**/

src/vim9compile.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4357,9 +4357,9 @@ compile_expr1(char_u **arg, cctx_T *cctx, ppconst_T *ppconst)
43574357
garray_T *instr = &cctx->ctx_instr;
43584358
garray_T *stack = &cctx->ctx_type_stack;
43594359
int alt_idx = instr->ga_len;
4360-
int end_idx;
4360+
int end_idx = 0;
43614361
isn_T *isn;
4362-
type_T *type1;
4362+
type_T *type1 = NULL;
43634363
type_T *type2;
43644364
int has_const_expr = FALSE;
43654365
int const_value = FALSE;

0 commit comments

Comments
 (0)