mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 01:16:31 +00:00
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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user