]> granicus.if.org Git - vim/commitdiff
patch 8.2.1464: Vim9: build warning for unused variable v8.2.1464
authorBram Moolenaar <Bram@vim.org>
Sat, 15 Aug 2020 20:48:48 +0000 (22:48 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 15 Aug 2020 20:48:48 +0000 (22:48 +0200)
Problem:    Vim9: build warning for unused variable.
Solution:   Delete the variable declaration.

src/version.c
src/vim9execute.c

index 864c14bd9fb13e2e7c96d4b94dd4c3969b48f8f1..4554fc4bbf650397e1fb2a420d8e259f0a209e5a 100644 (file)
@@ -754,6 +754,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1464,
 /**/
     1463,
 /**/
index 7cf2d0c3b54b43cd60e101fef5af5a0298642f87..5670a7c3c07fd82b5089fe1925b2fb148b08ddd4 100644 (file)
@@ -2291,7 +2291,6 @@ call_def_function(
                    int         is_slice = iptr->isn_type == ISN_LISTSLICE;
                    list_T      *list;
                    varnumber_T n1, n2;
-                   listitem_T  *li;
 
                    // list index: list is at stack-2, index at stack-1
                    // list slice: list is at stack-3, indexes at stack-2 and