]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.1.1862: Coverity warns for not using return value v8.1.1862
authorBram Moolenaar <Bram@vim.org>
Fri, 16 Aug 2019 19:54:27 +0000 (21:54 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 16 Aug 2019 19:54:27 +0000 (21:54 +0200)
Problem:    Coverity warns for not using return value.
Solution:   Add "(void)" to avoid the warning.

src/normal.c
src/version.c

index 2067542d3f515212bae3a02b5f9cf36a82222de5..7951bd5c36c8eecf47bb557378a7e7f803c2b233 100644 (file)
@@ -8065,7 +8065,7 @@ nv_g_cmd(cmdarg_T *cap)
            {
                if (cap->count1 > 1)
                    // if it fails, let the cursor still move to the last char
-                   cursor_down(cap->count1 - 1, FALSE);
+                   (void)cursor_down(cap->count1 - 1, FALSE);
 
                i = curwin->w_leftcol + curwin->w_width - col_off - 1;
                coladvance((colnr_T)i);
index 6af44429ae12c9801520ee6b60f2c437e1dd03c7..ba37a4115672b2febe1f37e8be67f09104c47289 100644 (file)
@@ -769,6 +769,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1862,
 /**/
     1861,
 /**/