diff options
author | KillTheMule <KillTheMule@users.noreply.github.com> | 2016-04-23 22:28:32 +0200 |
---|---|---|
committer | KillTheMule <KillTheMule@users.noreply.github.com> | 2016-04-23 23:43:32 +0200 |
commit | 445f0d7eed7c96aa30780622e6ee437794529547 (patch) | |
tree | 179a4e502f9a2724962b52351b36009a9b1aa162 /src/nvim/fold.c | |
parent | 3098b18a2b63a841351f6d5e3697cb69db3035ef (diff) | |
download | rneovim-445f0d7eed7c96aa30780622e6ee437794529547.tar.gz rneovim-445f0d7eed7c96aa30780622e6ee437794529547.tar.bz2 rneovim-445f0d7eed7c96aa30780622e6ee437794529547.zip |
vim-patch:7.4.822
Problem: More problems reported by coverity.
Solution: Avoid the warnings. (Christian Brabandt)
https://github.com/vim/vim/commit/cde885473099296c4837de261833f48b24caf87c
Applied manually. Files that do not exst anymore: gui.c gui_w16.c gui_w32.c
if_xcmdsrv.c os_unix.c
Diffstat (limited to 'src/nvim/fold.c')
-rw-r--r-- | src/nvim/fold.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/fold.c b/src/nvim/fold.c index 7f46a37315..ba84f6aaa5 100644 --- a/src/nvim/fold.c +++ b/src/nvim/fold.c @@ -2110,7 +2110,7 @@ static linenr_T foldUpdateIEMSRecurse(garray_T *gap, int level, */ if (getlevel == foldlevelMarker && flp->start <= flp->lvl - level && flp->lvl > 0) { - foldFind(gap, startlnum - 1, &fp); + (void)foldFind(gap, startlnum - 1, &fp); if (fp >= ((fold_T *)gap->ga_data) + gap->ga_len || fp->fd_top >= startlnum) fp = NULL; @@ -2167,7 +2167,7 @@ static linenr_T foldUpdateIEMSRecurse(garray_T *gap, int level, } } if (lvl < level + i) { - foldFind(&fp->fd_nested, flp->lnum - fp->fd_top, &fp2); + (void)foldFind(&fp->fd_nested, flp->lnum - fp->fd_top, &fp2); if (fp2 != NULL) bot = fp2->fd_top + fp2->fd_len - 1 + fp->fd_top; } else if (fp->fd_top + fp->fd_len <= flp->lnum && lvl >= level) |