aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2017-05-20 03:54:07 +0300
committerZyX <kp-pav@yandex.ru>2017-05-20 03:54:07 +0300
commit37a77506b0ddbc9dab7dd5984c843258e623b3f4 (patch)
tree63d48fb9636b3dbf37eb3fbbbfde8b10a29d83ac /src/nvim/eval.c
parentd9239181afcbd3230640b83bf3f971034dabb1ab (diff)
downloadrneovim-37a77506b0ddbc9dab7dd5984c843258e623b3f4.tar.gz
rneovim-37a77506b0ddbc9dab7dd5984c843258e623b3f4.tar.bz2
rneovim-37a77506b0ddbc9dab7dd5984c843258e623b3f4.zip
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.
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r--src/nvim/eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index ca1d50c1af..e4b3128930 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -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);