vim-patch:7.4.822

Problem:    More problems reported by coverity.
Solution:   Avoid the warnings. (Christian Brabandt)

cde8854730

Applied manually. Files that do not exst anymore: gui.c gui_w16.c gui_w32.c
if_xcmdsrv.c os_unix.c
This commit is contained in:
KillTheMule
2016-04-23 22:28:32 +02:00
parent 3098b18a2b
commit 445f0d7eed
7 changed files with 14 additions and 14 deletions

View File

@@ -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)