comparison src/vim9execute.c @ 21829:21c552fb7da5 v8.2.1464

patch 8.2.1464: Vim9: build warning for unused variable Commit: https://github.com/vim/vim/commit/829ac868b7615d73dbfb536f7fcd44fc7c5b7c1d Author: Bram Moolenaar <Bram@vim.org> Date: Sat Aug 15 22:48:48 2020 +0200 patch 8.2.1464: Vim9: build warning for unused variable Problem: Vim9: build warning for unused variable. Solution: Delete the variable declaration.
author Bram Moolenaar <Bram@vim.org>
date Sat, 15 Aug 2020 23:00:05 +0200
parents af5db9b6d210
children d8422de73113
comparison
equal deleted inserted replaced
21828:af5db9b6d210 21829:21c552fb7da5
2289 case ISN_LISTSLICE: 2289 case ISN_LISTSLICE:
2290 { 2290 {
2291 int is_slice = iptr->isn_type == ISN_LISTSLICE; 2291 int is_slice = iptr->isn_type == ISN_LISTSLICE;
2292 list_T *list; 2292 list_T *list;
2293 varnumber_T n1, n2; 2293 varnumber_T n1, n2;
2294 listitem_T *li;
2295 2294
2296 // list index: list is at stack-2, index at stack-1 2295 // list index: list is at stack-2, index at stack-1
2297 // list slice: list is at stack-3, indexes at stack-2 and 2296 // list slice: list is at stack-3, indexes at stack-2 and
2298 // stack-1 2297 // stack-1
2299 tv = is_slice ? STACK_TV_BOT(-3) : STACK_TV_BOT(-2); 2298 tv = is_slice ? STACK_TV_BOT(-3) : STACK_TV_BOT(-2);