# HG changeset patch # User Bram Moolenaar # Date 1614465903 -3600 # Node ID 2ff087b4712787eb971297dc8cddeb9ac6e145fc # Parent 45c1d2b158014fcd15922ccca9425b162d1a6c88 patch 8.2.2557: compiler warning for shadowd variable Commit: https://github.com/vim/vim/commit/087b5ff35d219f4f48a3d4854783799d0f6a1732 Author: Bram Moolenaar Date: Sat Feb 27 23:39:22 2021 +0100 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 --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2557, +/**/ 2556, /**/ 2555, diff --git a/src/vim9script.c b/src/vim9script.c --- 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;