]> granicus.if.org Git - vim/commitdiff
patch 8.2.2460: Coverity warns for unused value v8.2.2460
authorBram Moolenaar <Bram@vim.org>
Wed, 3 Feb 2021 18:57:00 +0000 (19:57 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 3 Feb 2021 18:57:00 +0000 (19:57 +0100)
Problem:    Coverity warns for unused value.
Solution:   Do not reset the return value to OK.

src/version.c
src/vim9compile.c

index e3f2095235a6a226e3e306c4865ddf89416a3eec..f6fbc8a4551e30ce114f0c84950f35c105b1e5a4 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2460,
 /**/
     2459,
 /**/
index 55e33eb12df7e9e78c7a4171804cb09389096b46..6a1d8d9e78caebf3e5206c78b691a8503bd2300e 100644 (file)
@@ -5147,7 +5147,6 @@ compile_nested_function(exarg_T *eap, cctx_T *cctx)
        }
     }
     // TODO: warning for trailing text?
-    r = OK;
 
 theend:
     vim_free(lambda_name);