]> granicus.if.org Git - vim/commitdiff
patch 8.2.2986: build failure without the profile feature v8.2.2986
authorBram Moolenaar <Bram@vim.org>
Sun, 13 Jun 2021 12:15:29 +0000 (14:15 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 13 Jun 2021 12:15:29 +0000 (14:15 +0200)
Problem:    Build failure without the profile feature.
Solution:   Add #ifdef.

src/version.c
src/vim9compile.c

index ad399ce486417018d793fbd7fa3ad34f3bcd055a..52e4a462b4ae4f573c1e4a16c9a54cb49f0c2f0f 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2986,
 /**/
     2985,
 /**/
index 7c0190677f2a1c85e540c1391d99ba18e2dd7d2e..1747f30fd91efbf5215559ad88ade10c96dc6b61 100644 (file)
@@ -1871,10 +1871,12 @@ func_needs_compiling(ufunc_T *ufunc, compiletype_T compile_type)
 
            switch (compile_type)
            {
-               case CT_NONE:
-                   return dfunc->df_instr == NULL;
                case CT_PROFILE:
+#ifdef FEAT_PROFILE
                    return dfunc->df_instr_prof == NULL;
+#endif
+               case CT_NONE:
+                   return dfunc->df_instr == NULL;
                case CT_DEBUG:
                    return dfunc->df_instr_debug == NULL;
            }