# HG changeset patch # User Bram Moolenaar # Date 1619466304 -7200 # Node ID dd87d08f86dee735822089d7313f8af284047df2 # Parent 0d3d3374240a09a25f1267cfa6f8d51f18cb1561 patch 8.2.2814: Vim9: unused variable Commit: https://github.com/vim/vim/commit/b06b50dfa06e1cbefd634e2735e7cd5ddd5b911c Author: Bram Moolenaar Date: Mon Apr 26 21:39:25 2021 +0200 patch 8.2.2814: Vim9: unused variable Problem: Vim9: unused variable. (John Marriott) Solution: Adjust #ifdef. diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2814, +/**/ 2813, /**/ 2812, diff --git a/src/vim9execute.c b/src/vim9execute.c --- a/src/vim9execute.c +++ b/src/vim9execute.c @@ -543,11 +543,11 @@ func_return(ectx_T *ectx) estack_T *entry; int prev_dfunc_idx = STACK_TV(ectx->ec_frame_idx + STACK_FRAME_FUNC_OFF)->vval.v_number; + funclocal_T *floc; +#ifdef FEAT_PROFILE dfunc_T *prev_dfunc = ((dfunc_T *)def_functions.ga_data) + prev_dfunc_idx; - funclocal_T *floc; - -#ifdef FEAT_PROFILE + if (do_profiling == PROF_YES) { ufunc_T *caller = prev_dfunc->df_ufunc;