Mercurial > vim
changeset 32192:e70c4cdad31d v9.0.1427
patch 9.0.1427: warning for uninitialized variable
Commit: https://github.com/vim/vim/commit/1f76138ff1d08a8474cfcaf743448caf679416a3
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Mar 25 11:31:32 2023 +0000
patch 9.0.1427: warning for uninitialized variable
Problem: Warning for uninitialized variable. (Tony Mechelynck)
Solution: Add #ifdef.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 25 Mar 2023 12:45:05 +0100 |
parents | 31f367cbaed0 |
children | 36885921be18 |
files | src/regexp_nfa.c src/version.c |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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);