From: Bram Moolenaar Date: Mon, 26 Apr 2021 19:39:25 +0000 (+0200) Subject: patch 8.2.2814: Vim9: unused variable X-Git-Tag: v8.2.2814 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b06b50dfa06e1cbefd634e2735e7cd5ddd5b911c;p=vim 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 index aea6465b5..d1ece1191 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2814, /**/ 2813, /**/ diff --git a/src/vim9execute.c b/src/vim9execute.c index 07812741e..f46e3f36e 100644 --- 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;