From: Bram Moolenaar Date: Sun, 13 Jun 2021 12:15:29 +0000 (+0200) Subject: patch 8.2.2986: build failure without the profile feature X-Git-Tag: v8.2.2986 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9f31c13d217b4b97f724774a67a6d1f8640e8ae;p=thirdparty%2Fvim.git patch 8.2.2986: build failure without the profile feature Problem: Build failure without the profile feature. Solution: Add #ifdef. --- diff --git a/src/version.c b/src/version.c index ad399ce486..52e4a462b4 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 */ +/**/ + 2986, /**/ 2985, /**/ diff --git a/src/vim9compile.c b/src/vim9compile.c index 7c0190677f..1747f30fd9 100644 --- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -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; }