Permalink
Browse files

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".
  • Loading branch information...
brammool committed Sep 5, 2017
1 parent 6756c70 commit c3f81394eff2b3edc7ea08405743f0d32048374a
Showing with 4 additions and 1 deletion.
  1. +1 −1 src/libvterm/src/screen.c
  2. +1 −0 src/libvterm/src/state.c
  3. +2 −0 src/version.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);
}
View
@@ -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);
View
@@ -769,6 +769,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1062,
/**/
1061,
/**/

0 comments on commit c3f8139

Please sign in to comment.