From 1f76138ff1d08a8474cfcaf743448caf679416a3 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 25 Mar 2023 11:31:32 +0000 Subject: patch 9.0.1427: warning for uninitialized variable Problem: Warning for uninitialized variable. (Tony Mechelynck) Solution: Add #ifdef. --- src/regexp_nfa.c | 4 +++- src/version.c | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/regexp_nfa.c b/src/regexp_nfa.c index cc29a4c3e..406a0e449 100644 --- a/src/regexp_nfa.c +++ b/src/regexp_nfa.c @@ -6678,7 +6678,9 @@ nfa_regmatch( int subidx; 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; result = match_backref(&t->subs.norm, subidx, &bytelen); diff --git a/src/version.c b/src/version.c index f44e29c5e..0a4a8a052 100644 --- a/src/version.c +++ b/src/version.c @@ -695,6 +695,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1427, /**/ 1426, /**/ -- cgit v1.2.1