Skip to content

Commit 087b5ff

Browse files
committed
patch 8.2.2557: compiler warning for shadowd variable
Problem: Compiler warning for shadowd variable. Solution: Declare "p" only once.
1 parent 0a84284 commit 087b5ff

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,8 @@ static char *(features[]) =
750750

751751
static int included_patches[] =
752752
{ /* Add new patch number below this line */
753+
/**/
754+
2557,
753755
/**/
754756
2556,
755757
/**/

src/vim9script.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,8 +364,6 @@ handle_import(
364364
arg = skipwhite_and_linebreak(arg, evalarg);
365365
if (STRNCMP("as", arg, 2) == 0 && IS_WHITE_OR_NUL(arg[2]))
366366
{
367-
char_u *p;
368-
369367
// skip over "as Name "; no line break allowed after "as"
370368
arg = skipwhite(arg + 2);
371369
p = arg;

0 commit comments

Comments
 (0)