]> granicus.if.org Git - vim/commitdiff
patch 8.2.0506: Coverity complains about ignoring return value v8.2.0506
authorBram Moolenaar <Bram@vim.org>
Fri, 3 Apr 2020 16:13:57 +0000 (18:13 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 3 Apr 2020 16:13:57 +0000 (18:13 +0200)
Problem:    Coverity complains about ignoring return value.
Solution:   Add (void).

src/userfunc.c
src/version.c

index 12d582a25009ed78eddc3cafbcde09ba6a724e95..71591eb5e92ca21afb75173ef67116a13674f41d 100644 (file)
@@ -1321,7 +1321,7 @@ call_user_func(
        // A Lambda always has the command "return {expr}".  It is much faster
        // to evaluate {expr} directly.
        ++ex_nesting_level;
-       eval1(&p, rettv, TRUE);
+       (void)eval1(&p, rettv, TRUE);
        --ex_nesting_level;
     }
     else
index 447cf2718caa5727ad5306cd90159456021d5fc4..a53f44b04a3801dd2c5538fc69f50ea4b48d0a98 100644 (file)
@@ -738,6 +738,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    506,
 /**/
     505,
 /**/