]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1334: Coverity complains about unchecked return value v9.1.1334
authorChristian Brabandt <cb@256bit.org>
Tue, 22 Apr 2025 18:04:28 +0000 (20:04 +0200)
committerChristian Brabandt <cb@256bit.org>
Tue, 22 Apr 2025 18:05:46 +0000 (20:05 +0200)
Problem:  Coverity complains about unchecked return value
Solution: cast return value to (void)

Fixes: Coverity issue 1646574
related: #17189

Signed-off-by: Christian Brabandt <cb@256bit.org>
src/session.c
src/version.c

index eea57a2333e7934914798ccc294813ef71a3c49f..56d368ac4588d88f9f5fbd0a0ce19fe427af91ac 100644 (file)
@@ -1072,7 +1072,7 @@ ex_loadview(exarg_T *eap)
     if (fname == NULL)
        return;
 
-    do_source(fname, FALSE, DOSO_NONE, NULL);
+    (void)do_source(fname, FALSE, DOSO_NONE, NULL);
     vim_free(fname);
 }
 
index cd58d6113494d8b7e16106c0e516b81007e39fb8..1a17d2e4c730589ffa275aebddf54a33510992e2 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1334,
 /**/
     1333,
 /**/