]> granicus.if.org Git - vim/commitdiff
patch 8.2.2536: Coverity complains about unchecked return value v8.2.2536
authorBram Moolenaar <Bram@vim.org>
Sat, 20 Feb 2021 19:26:16 +0000 (20:26 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 20 Feb 2021 19:26:16 +0000 (20:26 +0100)
Problem:    Coverity complains about unchecked return value.
Solution:   Add (void).

src/userfunc.c
src/version.c

index 64a8fa6063f0a8bada386f42f96e88496d8e3a5f..450582c4f8e8d34fa4dd1cd18875067a24f2ce57 100644 (file)
@@ -4020,7 +4020,7 @@ ex_defcompile(exarg_T *eap UNUSED)
                    && ufunc->uf_def_status == UF_TO_BE_COMPILED
                    && (ufunc->uf_flags & FC_DEAD) == 0)
            {
-               compile_def_function(ufunc, FALSE, FALSE, NULL);
+               (void)compile_def_function(ufunc, FALSE, FALSE, NULL);
 
                if (func_hashtab.ht_changed != changed)
                {
index 66f3fc6ae12320fa8953f31a81ac11329b012417..3f5ae9d8cc0407cea2acda0b5af6a754391cc86c 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2536,
 /**/
     2535,
 /**/