Mercurial > vim
comparison src/regexp_nfa.c @ 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 | 9f28cca2410a |
children | 2ed95122d59c |
comparison
equal
deleted
inserted
replaced
32191:31f367cbaed0 | 32192:e70c4cdad31d |
---|---|
6676 // \1 .. \9 \z1 .. \z9 | 6676 // \1 .. \9 \z1 .. \z9 |
6677 { | 6677 { |
6678 int subidx; | 6678 int subidx; |
6679 int bytelen; | 6679 int bytelen; |
6680 | 6680 |
6681 if (t->state->c <= NFA_BACKREF9) | 6681 #ifdef FEAT_SYN_HL |
6682 if (t->state->c >= NFA_BACKREF1 && t->state->c <= NFA_BACKREF9) | |
6683 #endif | |
6682 { | 6684 { |
6683 subidx = t->state->c - NFA_BACKREF1 + 1; | 6685 subidx = t->state->c - NFA_BACKREF1 + 1; |
6684 result = match_backref(&t->subs.norm, subidx, &bytelen); | 6686 result = match_backref(&t->subs.norm, subidx, &bytelen); |
6685 } | 6687 } |
6686 #ifdef FEAT_SYN_HL | 6688 #ifdef FEAT_SYN_HL |