changeset 24031:2ff087b47127 v8.2.2557

patch 8.2.2557: compiler warning for shadowd variable Commit: https://github.com/vim/vim/commit/087b5ff35d219f4f48a3d4854783799d0f6a1732 Author: Bram Moolenaar <Bram@vim.org> 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.
author Bram Moolenaar <Bram@vim.org>
date Sat, 27 Feb 2021 23:45:03 +0100
parents 45c1d2b15801
children 5b7b5227cb2a
files src/version.c src/vim9script.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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,
--- 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;