mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 01:08:20 +00:00
eval: Silence V614: potentially uninitialized variable
Could not be uninitialized because `func_or_func_caller_profiling` is true only if `do_profiling` is `YES`, and if `do_profiling` is `YES` then `script_prof_save()` was called to initialize the variable.
This commit is contained in:
@@ -21160,7 +21160,7 @@ void call_user_func(ufunc_T *fp, int argcount, typval_T *argvars,
|
||||
|
||||
if (func_or_func_caller_profiling) {
|
||||
call_start = profile_end(call_start);
|
||||
call_start = profile_sub_wait(wait_start, call_start);
|
||||
call_start = profile_sub_wait(wait_start, call_start); // -V614
|
||||
fp->uf_tm_total = profile_add(fp->uf_tm_total, call_start);
|
||||
fp->uf_tm_self = profile_self(fp->uf_tm_self, call_start,
|
||||
fp->uf_tm_children);
|
||||
|
Reference in New Issue
Block a user