commit | 8ed43916dbea4ccedcc84d271e292abbf658b9c5 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Thu Apr 21 08:56:12 2016 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Thu Apr 21 08:56:12 2016 +0200 |
tree | 618892a3eaf0e15f77cc9c09981e46903990f9be | |
parent | aa3b15dbebf333282503d6031e2f9ba6ee4398ed [diff] [blame] |
patch 7.4.1761 Problem: Coverity complains about ignoring return value. Solution: Add "(void)" to get rid of the warning.
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 @@ 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; }