Skip to content

Commit 7d9002c

Browse files
committed
updated for version 7.3.1156
Problem: Compiler warnings. (dv1445) Solution: Initialize variables, even when the value isn't really used.
1 parent 1cde7d1 commit 7d9002c

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

src/eval.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2734,6 +2734,8 @@ get_lval(name, rettv, lp, unlet, skip, quiet, fne_flags)
27342734
prevval = key[len];
27352735
key[len] = NUL;
27362736
}
2737+
else
2738+
prevval = 0; /* avoid compiler warning */
27372739
wrong = (lp->ll_dict->dv_scope == VAR_DEF_SCOPE
27382740
&& rettv->v_type == VAR_FUNC
27392741
&& var_check_func_name(key, lp->ll_di == NULL))

src/regexp_nfa.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3045,7 +3045,7 @@ post2nfa(postfix, end, nfa_calc_size)
30453045
start_state = NFA_START_INVISIBLE_BEFORE_NEG;
30463046
end_state = NFA_END_INVISIBLE_NEG;
30473047
break;
3048-
case NFA_PREV_ATOM_LIKE_PATTERN:
3048+
default: /* NFA_PREV_ATOM_LIKE_PATTERN: */
30493049
start_state = NFA_START_PATTERN;
30503050
end_state = NFA_END_PATTERN;
30513051
break;
@@ -4853,7 +4853,7 @@ nfa_regmatch(prog, start, submatch, m)
48534853
nfa_state_T *add_state;
48544854
int add_here;
48554855
int add_count;
4856-
int add_off;
4856+
int add_off = 0;
48574857
int toplevel = start->c == NFA_MOPEN;
48584858
#ifdef NFA_REGEXP_DEBUG_LOG
48594859
FILE *debug = fopen(NFA_REGEXP_DEBUG_LOG, "a");

src/version.c

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

729729
static int included_patches[] =
730730
{ /* Add new patch number below this line */
731+
/**/
732+
1156,
731733
/**/
732734
1155,
733735
/**/

0 commit comments

Comments
 (0)