From 087b5ff35d219f4f48a3d4854783799d0f6a1732 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 27 Feb 2021 23:39:22 +0100 Subject: patch 8.2.2557: compiler warning for shadowd variable Problem: Compiler warning for shadowd variable. Solution: Declare "p" only once. --- src/version.c | 2 ++ src/vim9script.c | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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; -- cgit v1.2.1