0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.2557: compiler warning for shadowd variable

Problem:    Compiler warning for shadowd variable.
Solution:   Declare "p" only once.
This commit is contained in:
Bram Moolenaar
2021-02-27 23:39:22 +01:00
parent 0a84284e60
commit 087b5ff35d
2 changed files with 2 additions and 2 deletions

View File

@@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
2557,
/**/ /**/
2556, 2556,
/**/ /**/

View File

@@ -364,8 +364,6 @@ handle_import(
arg = skipwhite_and_linebreak(arg, evalarg); arg = skipwhite_and_linebreak(arg, evalarg);
if (STRNCMP("as", arg, 2) == 0 && IS_WHITE_OR_NUL(arg[2])) 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" // skip over "as Name "; no line break allowed after "as"
arg = skipwhite(arg + 2); arg = skipwhite(arg + 2);
p = arg; p = arg;