Mercurial > vim
comparison src/gui.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 | 50dbef5e774a |
children | 2c00f6b312bf |
comparison
equal
deleted
inserted
replaced
7008:7ce1f4e998bb | 7009:286fd54c7ae3 |
---|---|
1573 | 1573 |
1574 base_width = gui_get_base_width(); | 1574 base_width = gui_get_base_width(); |
1575 base_height = gui_get_base_height(); | 1575 base_height = gui_get_base_height(); |
1576 if (fit_to_display) | 1576 if (fit_to_display) |
1577 /* Remember the original window position. */ | 1577 /* Remember the original window position. */ |
1578 gui_mch_get_winpos(&x, &y); | 1578 (void)gui_mch_get_winpos(&x, &y); |
1579 | 1579 |
1580 #ifdef USE_SUN_WORKSHOP | 1580 #ifdef USE_SUN_WORKSHOP |
1581 if (!mustset && usingSunWorkShop | 1581 if (!mustset && usingSunWorkShop |
1582 && workshop_get_width_height(&width, &height)) | 1582 && workshop_get_width_height(&width, &height)) |
1583 { | 1583 { |
5364 } | 5364 } |
5365 else | 5365 else |
5366 { | 5366 { |
5367 /* Search for the next match. */ | 5367 /* Search for the next match. */ |
5368 i = msg_scroll; | 5368 i = msg_scroll; |
5369 do_search(NULL, down ? '/' : '?', ga.ga_data, 1L, | 5369 (void)do_search(NULL, down ? '/' : '?', ga.ga_data, 1L, |
5370 SEARCH_MSG + SEARCH_MARK, NULL); | 5370 SEARCH_MSG + SEARCH_MARK, NULL); |
5371 msg_scroll = i; /* don't let an error message set msg_scroll */ | 5371 msg_scroll = i; /* don't let an error message set msg_scroll */ |
5372 } | 5372 } |
5373 | 5373 |
5374 /* Don't want to pass did_emsg to other code, it may cause disabling | 5374 /* Don't want to pass did_emsg to other code, it may cause disabling |