Skip to content

Commit

Permalink
patch 7.4.1590
Browse files Browse the repository at this point in the history
Problem:    Warning for shadowed variable. (Christian Brabandt)
Solution:   Move the variable into a local block.
  • Loading branch information
brammool committed Mar 18, 2016
1 parent 9e63f61 commit 3f242a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/eval.c
Expand Up @@ -21660,7 +21660,6 @@ handle_subscript(
char_u *s;
int len;
typval_T functv;
partial_T *pt = NULL;

while (ret == OK
&& (**arg == '['
Expand All @@ -21671,6 +21670,8 @@ handle_subscript(
{
if (**arg == '(')
{
partial_T *pt = NULL;

/* need to copy the funcref so that we can clear rettv */
if (evaluate)
{
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -748,6 +748,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1590,
/**/
1589,
/**/
Expand Down

0 comments on commit 3f242a8

Please sign in to comment.