]> granicus.if.org Git - vim/commitdiff
patch 8.2.2814: Vim9: unused variable v8.2.2814
authorBram Moolenaar <Bram@vim.org>
Mon, 26 Apr 2021 19:39:25 +0000 (21:39 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 26 Apr 2021 19:39:25 +0000 (21:39 +0200)
Problem:    Vim9: unused variable. (John Marriott)
Solution:   Adjust #ifdef.

src/version.c
src/vim9execute.c

index aea6465b5eab06bf6362c732171d0318282baa79..d1ece1191db28559322e4d545037e7ef94141c5b 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2814,
 /**/
     2813,
 /**/
index 07812741e515b317a40f9dfc3f8ceffef4635e64..f46e3f36e99468ed3efb9849e71f044d684d7676 100644 (file)
@@ -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;