]> granicus.if.org Git - vim/commitdiff
patch 9.0.1241: Coverity warns for not checking function return value v9.0.1241
authorBram Moolenaar <Bram@vim.org>
Wed, 25 Jan 2023 12:27:13 +0000 (12:27 +0000)
committerBram Moolenaar <Bram@vim.org>
Wed, 25 Jan 2023 12:27:13 +0000 (12:27 +0000)
Problem:    Coverity warns for not checking function return value.
Solution:   Explicitly ignore the return value.

src/userfunc.c
src/version.c

index 3ff49c9dd0fed46e402303843d284fd4d9582f1b..77a9fc2e61fa09fe6f15d3655497cf6afb9b8d05 100644 (file)
@@ -192,7 +192,7 @@ get_function_line(
                && *eap->cmdlinep == ((char_u **)lines_to_free->ga_data)
                                                   [lines_to_free->ga_len - 1])
            *eap->cmdlinep = theline;
-       ga_add_string(lines_to_free, theline);
+       (void)ga_add_string(lines_to_free, theline);
     }
 
     return theline;
index 4a3355c0b14bbbd30e69c48c384a2abeb2505f83..cfe6e6a651f663465620a5e58041456db741a542 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1241,
 /**/
     1240,
 /**/