]> granicus.if.org Git - vim/commitdiff
patch 8.2.2557: compiler warning for shadowd variable v8.2.2557
authorBram Moolenaar <Bram@vim.org>
Sat, 27 Feb 2021 22:39:22 +0000 (23:39 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 27 Feb 2021 22:39:22 +0000 (23:39 +0100)
Problem:    Compiler warning for shadowd variable.
Solution:   Declare "p" only once.

src/version.c
src/vim9script.c

index d6065b7e6931a019b1d52f83fb3c1e6261f174e6..8eead06d5216c3b3e0b46a962ff9b4ae99d61401 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2557,
 /**/
     2556,
 /**/
index 2a829f4981cfed902a26c0df819c74e507ac6a25..39d2eeb11bba871db15b0a183190df4ad459fe54 100644 (file)
@@ -364,8 +364,6 @@ handle_import(
        arg = skipwhite_and_linebreak(arg, evalarg);
        if (STRNCMP("as", arg, 2) == 0 && IS_WHITE_OR_NUL(arg[2]))
        {
-           char_u *p;
-
            // skip over "as Name "; no line break allowed after "as"
            arg = skipwhite(arg + 2);
            p = arg;