Patch 9.0.1427

7 views
Skip to first unread message

Bram Moolenaar

unread,
Mar 25, 2023, 7:32:02 AM3/25/23
to vim...@googlegroups.com

Patch 9.0.1427
Problem: Warning for uninitialized variable. (Tony Mechelynck)
Solution: Add #ifdef.
Files: src/regexp_nfa.c


*** ../vim-9.0.1426/src/regexp_nfa.c 2023-02-01 13:11:11.714991151 +0000
--- src/regexp_nfa.c 2023-03-25 11:30:46.307925154 +0000
***************
*** 6678,6684 ****
int subidx;
int bytelen;

! if (t->state->c <= NFA_BACKREF9)
{
subidx = t->state->c - NFA_BACKREF1 + 1;
result = match_backref(&t->subs.norm, subidx, &bytelen);
--- 6678,6686 ----
int subidx;
int bytelen;

! #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);
*** ../vim-9.0.1426/src/version.c 2023-03-24 19:25:02.156080183 +0000
--- src/version.c 2023-03-25 11:29:11.647913953 +0000
***************
*** 697,698 ****
--- 697,700 ----
{ /* Add new patch number below this line */
+ /**/
+ 1427,
/**/

--
GUARD #1: What, ridden on a horse?
ARTHUR: Yes!
GUARD #1: You're using coconuts!
ARTHUR: What?
GUARD #1: You've got two empty halves of coconut and you're bangin' 'em
together.
The Quest for the Holy Grail (Monty Python)

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages