From: Bram Moolenaar Date: Sat, 27 Feb 2021 22:39:22 +0000 (+0100) Subject: patch 8.2.2557: compiler warning for shadowd variable X-Git-Tag: v8.2.2557 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=087b5ff35d219f4f48a3d4854783799d0f6a1732;p=vim patch 8.2.2557: compiler warning for shadowd variable Problem: Compiler warning for shadowd variable. Solution: Declare "p" only once. --- diff --git a/src/version.c b/src/version.c index d6065b7e6..8eead06d5 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2557, /**/ 2556, /**/ diff --git a/src/vim9script.c b/src/vim9script.c index 2a829f498..39d2eeb11 100644 --- a/src/vim9script.c +++ b/src/vim9script.c @@ -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;