summaryrefslogtreecommitdiff
path: root/src/regexp.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2015-08-11 19:14:00 +0200
committerBram Moolenaar <Bram@vim.org>2015-08-11 19:14:00 +0200
commitcde885473099296c4837de261833f48b24caf87c (patch)
tree7864f4147f9c3b57a77b649c7d14e8ad31cafa6c /src/regexp.c
parentbd8539aac385d265d41da2e8ab59d7b9c3694557 (diff)
downloadvim-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/regexp.c')
-rw-r--r--src/regexp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regexp.c b/src/regexp.c
index 45b8071ab..37d42c71a 100644
--- a/src/regexp.c
+++ b/src/regexp.c
@@ -3824,14 +3824,14 @@ bt_regexec_both(line, col, tm)
/* Use an item size of 1 byte, since we push different things
* onto the regstack. */
ga_init2(&regstack, 1, REGSTACK_INITIAL);
- ga_grow(&regstack, REGSTACK_INITIAL);
+ (void)ga_grow(&regstack, REGSTACK_INITIAL);
regstack.ga_growsize = REGSTACK_INITIAL * 8;
}
if (backpos.ga_data == NULL)
{
ga_init2(&backpos, sizeof(backpos_T), BACKPOS_INITIAL);
- ga_grow(&backpos, BACKPOS_INITIAL);
+ (void)ga_grow(&backpos, BACKPOS_INITIAL);
backpos.ga_growsize = BACKPOS_INITIAL * 8;
}