From 829ac868b7615d73dbfb536f7fcd44fc7c5b7c1d Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 15 Aug 2020 22:48:48 +0200 Subject: [PATCH] patch 8.2.1464: Vim9: build warning for unused variable Problem: Vim9: build warning for unused variable. Solution: Delete the variable declaration. --- src/version.c | 2 ++ src/vim9execute.c | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/version.c b/src/version.c index 864c14bd9..4554fc4bb 100644 --- a/src/version.c +++ b/src/version.c @@ -754,6 +754,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1464, /**/ 1463, /**/ diff --git a/src/vim9execute.c b/src/vim9execute.c index 7cf2d0c3b..5670a7c3c 100644 --- a/src/vim9execute.c +++ b/src/vim9execute.c @@ -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 -- 2.40.0