Commit: patch 9.1.1334: Coverity complains about unchecked return value

2 views
Skip to first unread message

Christian Brabandt

unread,
Apr 22, 2025, 2:15:15 PM4/22/25
to vim...@googlegroups.com
patch 9.1.1334: Coverity complains about unchecked return value

Commit: https://github.com/vim/vim/commit/d847b241f5472477db8b76a4a630ae66bd33f8f2
Author: Christian Brabandt <c...@256bit.org>
Date: Tue Apr 22 20:04:28 2025 +0200

patch 9.1.1334: Coverity complains about unchecked return value

Problem: Coverity complains about unchecked return value
Solution: cast return value to (void)

Fixes: Coverity issue 1646574
related: #17189

Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/session.c b/src/session.c
index eea57a233..56d368ac4 100644
--- a/src/session.c
+++ b/src/session.c
@@ -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);
}

diff --git a/src/version.c b/src/version.c
index cd58d6113..1a17d2e4c 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1334,
/**/
1333,
/**/
Reply all
Reply to author
Forward
0 new messages