comparison src/window.c @ 7009:286fd54c7ae3 v7.4.822

patch 7.4.822 Problem: More problems reported by coverity. Solution: Avoid the warnings. (Christian Brabandt)
author Bram Moolenaar <bram@vim.org>
date Tue, 11 Aug 2015 19:14:00 +0200
parents 1efa7c2b9368
children ae360f1df2aa
comparison
equal deleted inserted replaced
7008:7ce1f4e998bb 7009:286fd54c7ae3
139 goto newwindow; 139 goto newwindow;
140 #endif 140 #endif
141 #ifdef FEAT_GUI 141 #ifdef FEAT_GUI
142 need_mouse_correct = TRUE; 142 need_mouse_correct = TRUE;
143 #endif 143 #endif
144 win_split((int)Prenum, 0); 144 (void)win_split((int)Prenum, 0);
145 break; 145 break;
146 146
147 #ifdef FEAT_VERTSPLIT 147 #ifdef FEAT_VERTSPLIT
148 /* split current window in two parts, vertically */ 148 /* split current window in two parts, vertically */
149 case Ctrl_V: 149 case Ctrl_V:
157 goto newwindow; 157 goto newwindow;
158 # endif 158 # endif
159 # ifdef FEAT_GUI 159 # ifdef FEAT_GUI
160 need_mouse_correct = TRUE; 160 need_mouse_correct = TRUE;
161 # endif 161 # endif
162 win_split((int)Prenum, WSP_VERT); 162 (void)win_split((int)Prenum, WSP_VERT);
163 break; 163 break;
164 #endif 164 #endif
165 165
166 /* split current window and edit alternate file */ 166 /* split current window and edit alternate file */
167 case Ctrl_HAT: 167 case Ctrl_HAT:
2584 ; 2584 ;
2585 if (wp == NULL) 2585 if (wp == NULL)
2586 return; 2586 return;
2587 2587
2588 /* When closing the last window in a tab page remove the tab page. */ 2588 /* When closing the last window in a tab page remove the tab page. */
2589 if (tp == NULL ? firstwin == lastwin : tp->tp_firstwin == tp->tp_lastwin) 2589 if (tp->tp_firstwin == tp->tp_lastwin)
2590 { 2590 {
2591 if (tp == first_tabpage) 2591 if (tp == first_tabpage)
2592 first_tabpage = tp->tp_next; 2592 first_tabpage = tp->tp_next;
2593 else 2593 else
2594 { 2594 {