To: vim_dev@googlegroups.com Subject: Patch 7.4.1590 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 7.4.1590 Problem: Warning for shadowed variable. (Christian Brabandt) Solution: Move the variable into a local block. Files: src/eval.c *** ../vim-7.4.1589/src/eval.c 2016-03-17 23:13:24.174681447 +0100 --- src/eval.c 2016-03-18 19:37:07.953720231 +0100 *************** *** 21660,21666 **** char_u *s; int len; typval_T functv; - partial_T *pt = NULL; while (ret == OK && (**arg == '[' --- 21660,21665 ---- *************** *** 21671,21676 **** --- 21670,21677 ---- { if (**arg == '(') { + partial_T *pt = NULL; + /* need to copy the funcref so that we can clear rettv */ if (evaluate) { *** ../vim-7.4.1589/src/version.c 2016-03-17 23:13:24.174681447 +0100 --- src/version.c 2016-03-18 19:38:53.784603110 +0100 *************** *** 750,751 **** --- 750,753 ---- { /* Add new patch number below this line */ + /**/ + 1590, /**/ -- Q: How many legs does a giraffe have? A: Eight: two in front, two behind, two on the left and two on the right /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///