patch 7.4.1590
Problem: Warning for shadowed variable. (Christian Brabandt)
Solution: Move the variable into a local block.
diff --git a/src/eval.c b/src/eval.c
index 3db58f8..5fc4bd4 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -21660,7 +21660,6 @@
char_u *s;
int len;
typval_T functv;
- partial_T *pt = NULL;
while (ret == OK
&& (**arg == '['
@@ -21671,6 +21670,8 @@
{
if (**arg == '(')
{
+ partial_T *pt = NULL;
+
/* need to copy the funcref so that we can clear rettv */
if (evaluate)
{
diff --git a/src/version.c b/src/version.c
index 6e448f2..a64d608 100644
--- a/src/version.c
+++ b/src/version.c
@@ -749,6 +749,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1590,
+/**/
1589,
/**/
1588,