diff options
author | Bram Moolenaar <Bram@vim.org> | 2015-08-11 19:14:00 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2015-08-11 19:14:00 +0200 |
commit | cde885473099296c4837de261833f48b24caf87c (patch) | |
tree | 7864f4147f9c3b57a77b649c7d14e8ad31cafa6c /src/eval.c | |
parent | bd8539aac385d265d41da2e8ab59d7b9c3694557 (diff) | |
download | vim-git-cde885473099296c4837de261833f48b24caf87c.tar.gz |
patch 7.4.822v7.4.822
Problem: More problems reported by coverity.
Solution: Avoid the warnings. (Christian Brabandt)
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/eval.c b/src/eval.c index 9de276415..1b2d77e41 100644 --- a/src/eval.c +++ b/src/eval.c @@ -6736,7 +6736,7 @@ list_join_inner(gap, l, sep, echo_style, copyID, join_gap) len = (int)STRLEN(s); sumlen += len; - ga_grow(join_gap, 1); + (void)ga_grow(join_gap, 1); p = ((join_T *)join_gap->ga_data) + (join_gap->ga_len++); if (tofree != NULL || s != numbuf) { @@ -19590,7 +19590,7 @@ error: goto error; } - ga_grow(&ga, cplen); + (void)ga_grow(&ga, cplen); mch_memmove((char *)ga.ga_data + ga.ga_len, cpstr, (size_t)cplen); ga.ga_len += cplen; @@ -19610,7 +19610,7 @@ error: } /* add a terminating NUL */ - ga_grow(&ga, 1); + (void)ga_grow(&ga, 1); ga_append(&ga, NUL); rettv->vval.v_string = ga.ga_data; |