[vim] 78/139: patch 7.4.1761 Problem: Coverity complains about ignoring return value. Solution: Add "(void)" to get rid of the warning.
James McCoy
jamessan at debian.org
Fri May 6 04:00:07 UTC 2016
This is an automated email from the git hooks/post-receive script.
jamessan pushed a commit to branch debian/sid
in repository vim.
commit 8ed43916dbea4ccedcc84d271e292abbf658b9c5
Author: Bram Moolenaar <Bram at vim.org>
Date: Thu Apr 21 08:56:12 2016 +0200
patch 7.4.1761
Problem: Coverity complains about ignoring return value.
Solution: Add "(void)" to get rid of the warning.
---
src/eval.c | 2 +-
src/version.c | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/eval.c b/src/eval.c
index 53a651a..1daf042 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -13178,7 +13178,7 @@ f_getreg(typval_T *argvars, typval_T *rettv)
rettv->vval.v_list = (list_T *)get_reg_contents(regname,
(arg2 ? GREG_EXPR_SRC : 0) | GREG_LIST);
if (rettv->vval.v_list == NULL)
- rettv_list_alloc(rettv);
+ (void)rettv_list_alloc(rettv);
else
++rettv->vval.v_list->lv_refcount;
}
diff --git a/src/version.c b/src/version.c
index eeff8c6..63dedd7 100644
--- a/src/version.c
+++ b/src/version.c
@@ -749,6 +749,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1761,
+/**/
1760,
/**/
1759,
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-vim/vim.git
More information about the pkg-vim-maintainers
mailing list