Mercurial > vim
changeset 12365:db99bd23c87f v8.0.1062
patch 8.0.1062: Coverity warnings in libvterm
commit https://github.com/vim/vim/commit/c3f81394eff2b3edc7ea08405743f0d32048374a
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Sep 5 23:29:34 2017 +0200
patch 8.0.1062: Coverity warnings in libvterm
Problem: Coverity warnings in libvterm.
Solution: Add (void) to avoid warning for not checking return value.
Add "break" before "case".
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 05 Sep 2017 23:30:05 +0200 |
parents | 252f7d25c88f |
children | 1e2c608b8049 |
files | src/libvterm/src/screen.c src/libvterm/src/state.c src/version.c |
diffstat | 3 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/libvterm/src/screen.c +++ b/src/libvterm/src/screen.c @@ -214,7 +214,7 @@ static int moverect_internal(VTermRect d VTermPos pos; for(pos.row = 0; pos.row < src.start_row; pos.row++) { for(pos.col = 0; pos.col < screen->cols; pos.col++) - vterm_screen_get_cell(screen, pos, screen->sb_buffer + pos.col); + (void)vterm_screen_get_cell(screen, pos, screen->sb_buffer + pos.col); (screen->callbacks->sb_pushline)(screen->cols, screen->sb_buffer, screen->cbdata); }