1
0
forked from aniani/vim

patch 7.4.822

Problem:    More problems reported by coverity.
Solution:   Avoid the warnings. (Christian Brabandt)
This commit is contained in:
Bram Moolenaar
2015-08-11 19:14:00 +02:00
parent bd8539aac3
commit cde8854730
18 changed files with 46 additions and 45 deletions

View File

@@ -141,7 +141,7 @@ do_window(nchar, Prenum, xchar)
#ifdef FEAT_GUI
need_mouse_correct = TRUE;
#endif
win_split((int)Prenum, 0);
(void)win_split((int)Prenum, 0);
break;
#ifdef FEAT_VERTSPLIT
@@ -159,7 +159,7 @@ do_window(nchar, Prenum, xchar)
# ifdef FEAT_GUI
need_mouse_correct = TRUE;
# endif
win_split((int)Prenum, WSP_VERT);
(void)win_split((int)Prenum, WSP_VERT);
break;
#endif
@@ -2586,7 +2586,7 @@ win_close_othertab(win, free_buf, tp)
return;
/* When closing the last window in a tab page remove the tab page. */
if (tp == NULL ? firstwin == lastwin : tp->tp_firstwin == tp->tp_lastwin)
if (tp->tp_firstwin == tp->tp_lastwin)
{
if (tp == first_tabpage)
first_tabpage = tp->tp_next;