0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.2986: build failure without the profile feature

Problem:    Build failure without the profile feature.
Solution:   Add #ifdef.
This commit is contained in:
Bram Moolenaar
2021-06-13 14:15:29 +02:00
parent e99d422bbd
commit d9f31c13d2
2 changed files with 6 additions and 2 deletions

View File

@@ -1871,10 +1871,12 @@ func_needs_compiling(ufunc_T *ufunc, compiletype_T compile_type)
switch (compile_type)
{
case CT_PROFILE:
#ifdef FEAT_PROFILE
return dfunc->df_instr_prof == NULL;
#endif
case CT_NONE:
return dfunc->df_instr == NULL;
case CT_PROFILE:
return dfunc->df_instr_prof == NULL;
case CT_DEBUG:
return dfunc->df_instr_debug == NULL;
}