diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-09-05 23:29:34 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-09-05 23:29:34 +0200 |
commit | c3f81394eff2b3edc7ea08405743f0d32048374a (patch) | |
tree | 6597e5dbd4c9099da2d28747af9459a79004a4d2 /src/libvterm | |
parent | 6756c7037f07e1fb54e1b9d8e92567ac388617c4 (diff) | |
download | vim-git-c3f81394eff2b3edc7ea08405743f0d32048374a.tar.gz |
patch 8.0.1062: Coverity warnings in libvtermv8.0.1062
Problem: Coverity warnings in libvterm.
Solution: Add (void) to avoid warning for not checking return value.
Add "break" before "case".
Diffstat (limited to 'src/libvterm')
-rw-r--r-- | src/libvterm/src/screen.c | 2 | ||||
-rw-r--r-- | src/libvterm/src/state.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/libvterm/src/screen.c b/src/libvterm/src/screen.c index a174e8657..8d6218f67 100644 --- a/src/libvterm/src/screen.c +++ b/src/libvterm/src/screen.c @@ -214,7 +214,7 @@ static int moverect_internal(VTermRect dest, VTermRect src, void *user) 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); } diff --git a/src/libvterm/src/state.c b/src/libvterm/src/state.c index 88c259c34..5a6feacb1 100644 --- a/src/libvterm/src/state.c +++ b/src/libvterm/src/state.c @@ -878,6 +878,7 @@ static void request_dec_mode(VTermState *state, int num) case 2004: reply = state->mode.bracketpaste; + break; default: vterm_push_output_sprintf_ctrl(state->vt, C1_CSI, "?%d;%d$y", num, 0); |