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:
@@ -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,
|
||||||
/**/
|
/**/
|
||||||
|
@@ -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;
|
||||||
|
Reference in New Issue
Block a user