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);
     }
--- a/src/libvterm/src/state.c
+++ b/src/libvterm/src/state.c
@@ -878,6 +878,7 @@ static void request_dec_mode(VTermState 
 
     case 2004:
       reply = state->mode.bracketpaste;
+      break;
 
     default:
       vterm_push_output_sprintf_ctrl(state->vt, C1_CSI, "?%d;%d$y", num, 0);
--- a/src/version.c
+++ b/src/version.c
@@ -770,6 +770,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1062,
+/**/
     1061,
 /**/
     1060,