Mercurial > vim
diff 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 |
line wrap: on
line diff
--- a/src/gui.c +++ b/src/gui.c @@ -1575,7 +1575,7 @@ gui_set_shellsize(mustset, fit_to_displa base_height = gui_get_base_height(); if (fit_to_display) /* Remember the original window position. */ - gui_mch_get_winpos(&x, &y); + (void)gui_mch_get_winpos(&x, &y); #ifdef USE_SUN_WORKSHOP if (!mustset && usingSunWorkShop @@ -5366,7 +5366,7 @@ gui_do_findrepl(flags, find_text, repl_t { /* Search for the next match. */ i = msg_scroll; - do_search(NULL, down ? '/' : '?', ga.ga_data, 1L, + (void)do_search(NULL, down ? '/' : '?', ga.ga_data, 1L, SEARCH_MSG + SEARCH_MARK, NULL); msg_scroll = i; /* don't let an error message set msg_scroll */ }