0
0
mirror of https://github.com/vim/vim.git synced 2025-10-06 05:44:14 -04:00

patch 9.0.1427: warning for uninitialized variable

Problem:    Warning for uninitialized variable. (Tony Mechelynck)
Solution:   Add #ifdef.
This commit is contained in:
Bram Moolenaar
2023-03-25 11:31:32 +00:00
parent 99e4ab2a1e
commit 1f76138ff1
2 changed files with 5 additions and 1 deletions

View File

@@ -6678,7 +6678,9 @@ nfa_regmatch(
int subidx; int subidx;
int bytelen; int bytelen;
if (t->state->c <= NFA_BACKREF9) #ifdef FEAT_SYN_HL
if (t->state->c >= NFA_BACKREF1 && t->state->c <= NFA_BACKREF9)
#endif
{ {
subidx = t->state->c - NFA_BACKREF1 + 1; subidx = t->state->c - NFA_BACKREF1 + 1;
result = match_backref(&t->subs.norm, subidx, &bytelen); result = match_backref(&t->subs.norm, subidx, &bytelen);

View File

@@ -695,6 +695,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1427,
/**/ /**/
1426, 1426,
/**/ /**/