0
0
mirror of https://github.com/vim/vim.git synced 2025-09-30 04:44:14 -04:00

patch 8.2.3125: variables are set but not used

Problem:    Variables are set but not used.
Solution:   Move the declarations to the block where they are used.
            (closes #8527)
This commit is contained in:
=?UTF-8?q?Dundar=20G=C3=B6c?=
2021-07-08 18:05:00 +02:00
committed by Bram Moolenaar
parent deb108ba0a
commit 09f688c33a
2 changed files with 7 additions and 5 deletions

View File

@@ -1371,8 +1371,6 @@ nfa_regatom(void)
int negated; int negated;
int result; int result;
int startc = -1; int startc = -1;
int endc = -1;
int oldstartc = -1;
int save_prev_at_start = prev_at_start; int save_prev_at_start = prev_at_start;
c = getchr(); c = getchr();
@@ -1838,7 +1836,7 @@ collection:
* Failed to recognize a character class. Use the simple * Failed to recognize a character class. Use the simple
* version that turns [abc] into 'a' OR 'b' OR 'c' * version that turns [abc] into 'a' OR 'b' OR 'c'
*/ */
startc = endc = oldstartc = -1; startc = -1;
negated = FALSE; negated = FALSE;
if (*regparse == '^') // negated range if (*regparse == '^') // negated range
{ {
@@ -1859,7 +1857,8 @@ collection:
emit_range = FALSE; emit_range = FALSE;
while (regparse < endp) while (regparse < endp)
{ {
oldstartc = startc; int oldstartc = startc;
startc = -1; startc = -1;
got_coll_char = FALSE; got_coll_char = FALSE;
if (*regparse == '[') if (*regparse == '[')
@@ -2017,7 +2016,8 @@ collection:
// Previous char was '-', so this char is end of range. // Previous char was '-', so this char is end of range.
if (emit_range) if (emit_range)
{ {
endc = startc; int endc = startc;
startc = oldstartc; startc = oldstartc;
if (startc > endc) if (startc > endc)
EMSG_RET_FAIL(_(e_reverse_range)); EMSG_RET_FAIL(_(e_reverse_range));

View File

@@ -755,6 +755,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 */
/**/
3125,
/**/ /**/
3124, 3124,
/**/ /**/